Function at 0x43d300
Capabilities:
Get common file path
Resolve function by parsing pe exports
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x318
mov eax, dword [0x51e080]
xor eax, esp
mov dword [esp + 0x314], eax
push esi
mov esi, ecx
mov dword [esp + 0x1c], 0
mov dword [esp + 0x20], 0
mov dword [esp + 0x24], 0
mov dword [esp + 0x28], 0
mov edx, dword [esi + 0xa0]
mov dword [esp + 0x2c], 0
mov dword [esp + 0x30], 0
mov dword [esp + 0x34], 0xffffffff
mov dword [esp + 0x38], 0xffffffff
mov dword [esp + 0x3c], 0xffffffff
mov dword [esp + 0x40], 0xffffffff
mov dword [esp + 0x44], 0xffffffff
mov eax, dword [edx + 8]
sub eax, 2
mov dword [esp + 0xc], esi
push edi
cmp eax, 3
ja case.default.0x43d395
lea edi, [esi + 0x94]
jmp dword [eax*4 + 0x43df4c]
mov eax, dword [esi + 0x5c]
test eax, eax
jne 0x43d3c3
mov ecx, dword [edi]
mov eax, dword [edx + 0x10]
cmp eax, dword [ecx + 0x280]
ja 0x43d43e
mov dword [esi + 0x5c], 2
lea edi, [esi + 0x94]
jmp 0x43d424
cmp eax, 1
jne 0x43d3e5
cmp dword [esi + 0x60], eax
jne case.default.0x43d395
mov ecx, dword [edi]
mov eax, dword [edx + 0x10]
mov dword [ecx + 0x280], eax
mov dword [esi + 0x5c], 2
jmp 0x43d424
cmp eax, 2
jne 0x43d539
mov eax, dword [edi]
push 0
push 0
push dword [edx + 0x14]
mov eax, dword [eax + 0x4d8]
push dword [esi + 0xa4]
mov ecx, dword [eax + 0xbc]
call fcn.004298f0
test eax, eax
jne 0x43d4cd
mov dword [esi + 0x60], 1
mov dword [esi + 0x5c], 3
mov edx, dword [esi + 0xa0]
mov eax, dword [edx + 8]
sub eax, 2
cmp eax, 3
jbe switch.0x0043d395
jmp case.default.0x43d395
mov edi, dword [esi + 0x98]
mov eax, dword [esi + 0x74]
mov dword [esp + 0x20], eax
mov dword [esp + 0x3c], 1
mov dword [esp + 0x2c], 1
mov ecx, dword [edi + 0x6c]
mov esi, dword [edx + 0x10]
lea edx, [esp + 0x14]
push 0x90cd4316
push edx
mov eax, dword [ecx]
call dword [eax]
mov ecx, dword [edi + 0x6c]
lea edx, [esp + 0x10]
push 1
push edx
mov eax, dword [ecx]
call dword [eax]
push esi
push dword [esp + 0x18]
lea eax, [esp + 0x118]
push 0xffffffffffffffff
push 0x100
push eax
call fcn.00415570
add esp, 0x14
lea eax, [esp + 0x20]
mov ecx, edi
push eax
push 1
push dword [esp + 0x18]
lea eax, [esp + 0x11c]
push eax
push 0
call fcn.00406dc0
xor eax, eax
pop edi
pop esi
mov ecx, dword [esp + 0x314]
xor ecx, esp
call fcn.004d3878
mov esp, ebp
pop ebp
ret 4
mov eax, dword [esi + 0x74]
lea edx, [esp + 0x10]
mov esi, dword [esi + 0x98]
mov dword [esp + 0x20], eax
mov dword [esp + 0x3c], 3
mov dword [esp + 0x2c], 1
mov ecx, dword [esi + 0x6c]
push 0xb3ced327
push edx
mov eax, dword [ecx]
call dword [eax]
mov ecx, dword [esi + 0x6c]
lea edx, [esp + 0x14]
push 1
push edx
mov eax, dword [ecx]
call dword [eax]
lea eax, [esp + 0x20]
mov ecx, esi
push eax
push 1
push dword [esp + 0x1c]
push dword [esp + 0x1c]
push 0
call fcn.00406dc0
xor eax, eax
pop edi
pop esi
mov ecx, dword [esp + 0x314]
xor ecx, esp
call fcn.004d3878
mov esp, ebp
pop ebp
ret 4
cmp eax, 3
jne case.default.0x43d395
xor ecx, ecx
cmp dword [esi + 0x60], 1
setne cl
cmp dword [edx + 0x14], 0
mov dword [esp + 0x14], ecx
je 0x43d578
mov eax, dword [edi]
push ecx
push 1
push dword [edx + 0x38]
mov eax, dword [eax + 0x4d8]
push dword [esi + 0xa4]
mov ecx, dword [eax + 0xbc]
call fcn.004298f0
test eax, eax
jne 0x43d5b4
mov eax, dword [esi + 0xa0]
mov edx, dword [eax + 0x38]
mov ecx, dword [eax + 0x14]
sub edx, ecx
je 0x43d5cb
mov eax, dword [esi + 0x94]
push dword [esp + 0x14]
shl ecx, 5
add ecx, dword [esi + 0xa4]
mov eax, dword [eax + 0x4d8]
push 2
push edx
push ecx
mov ecx, dword [eax + 0xbc]
call fcn.004298f0
test eax, eax
je 0x43d5cb
push 0
push 0
push ecx
mov ecx, dword [esi + 0x98]
push 0xc87866ef
push 0
call fcn.0045c180
push 1
mov ecx, esi
call fcn.0043e1d0
mov ecx, dword [esi + 0x94]
mov ecx, dword [ecx + 0x474]
call fcn.00430dd0
mov ecx, dword [esi + 0x94]
call fcn.00495c40
mov ecx, dword [esi + 0x94]
push dword [ecx + 0x1d4]
push dword [ecx + 0x1d0]
push dword [ecx + 0x1bc]
mov ecx, dword [ecx + 0x478]
push 1
call fcn.0045db50
jmp case.default.0x43d395
cmp dword [esi + 0x5c], 0
jne 0x43d669
mov eax, dword [esi + 0x74]
mov dword [esp + 0x20], eax
lea eax, [esp + 0x20]
push eax
push 1
push ecx
mov ecx, dword [esi + 0x98]
push 0x16f
push 0
mov dword [esp + 0x50], 1
mov dword [esp + 0x40], 1
call fcn.0045c180
xor eax, eax
pop edi
pop esi
mov ecx, dword [esp + 0x314]
xor ecx, esp
call fcn.004d3878
mov esp, ebp
pop ebp
ret 4
cmp dword [esi + 0x60], 1
jne case.default.0x43d395
mov ecx, esi
call fcn.0043df60
jmp case.default.0x43d395
cmp dword [esi + 0x5c], 0
jne 0x43daf2
mov eax, dword [esi + 0x74]
mov ecx, dword [esi + 0x98]
mov dword [esp + 0x20], eax
lea eax, [esp + 0x20]
push eax
push 0x3cf785ed
mov dword [esp + 0x44], 0
mov dword [esp + 0x34], 1
call fcn.00407340
test eax, eax
jne case.default.0x43d395
mov eax, dword [esi + 0xac]
test eax, eax
je 0x43d6da
push eax
call fcn.004d9a63
add esp, 4
mov dword [esi + 0xac], 0
mov eax, dword [esi + 0xb0]
test eax, eax
je 0x43d6f7
push eax
call fcn.004d9a63
add esp, 4
mov dword [esi + 0xb0], 0
push 0x208
call fcn.004d9a7e
add esp, 4
mov dword [esi + 0xac], eax
xor ecx, ecx
mov word [eax], cx
push 0x208
call fcn.004d9a7e
mov dword [esi + 0xb0], eax
add esp, 4
mov eax, dword [esi + 0xa0]
cmp dword [eax + 0x38], 0
je 0x43d85b
mov eax, dword [esi + 0x9c]
mov edx, dword [eax + 0xc4]
mov eax, dword [edx + 0x90]
mov dword [esp + 0x10], eax
mov eax, dword [esi + 0x94]
mov ecx, dword [eax + 0x49c]
lea eax, [esp + 0x10]
push eax
push dword [edx + 0x9c]
lea eax, [edx + 0x10]
push eax
push dword [esi + 0xa4]
call fcn.004a73f0
test eax, eax
jne 0x43d85b
mov eax, dword [esi + 0x9c]
push 0
push dword [esp + 0x14]
mov ecx, dword [eax + 0xc4]
push dword [ecx + 0x9c]
call fcn.004ace30
test eax, eax
jne 0x43d85b
mov eax, dword [esi + 0x9c]
mov eax, dword [eax + 0xc4]
mov ecx, dword [eax + 0x9c]
mov eax, dword [ecx]
test eax, eax
je 0x43d7c6
cmp eax, 6
je 0x43d7c6
cmp eax, 1
je 0x43d7c6
cmp eax, 2
jne 0x43d85b
lea eax, [esp + 0x14]
push eax
push ecx
push ecx
lea edi, [ecx + 8]
call fcn.004abd50
mov eax, dword [esp + 0x14]
test eax, eax
je 0x43d85b
lea ecx, [esp + 0xe0]
push ecx
mov ecx, dword [esi + 0x94]
push dword [eax]
mov ecx, dword [ecx + 0x4c8]
call fcn.0047ae80
lea eax, [esp + 0xcc]
push eax
lea eax, [esp + 0xe4]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_SystemTimeToTzSpecificLocalTime]
push 0x10
lea eax, [esp + 0xf4]
push eax
push str.yyMMdd
lea eax, [esp + 0xd8]
push eax
push 0
push 0x409
call dword [sym.imp.KERNEL32.dll_GetDateFormatW]
lea eax, [esp + 0xf0]
push eax
push edi
push str._s___s_.xml
push 0xffffffffffffffff
lea eax, [esp + 0x120]
push 0x104
push eax
call fcn.00415570
add esp, 0x18
jmp 0x43d872
push str.board.xml
lea eax, [esp + 0x114]
push 0x10
push eax
call fcn.004d9c76
add esp, 0xc
lea eax, [esp + 0x110]
push eax
push 0x104
push dword [esi + 0xac]
call fcn.004d9c76
add esp, 0xc
lea eax, [esp + 0x60]
push 0x58
push 0
push eax
call fcn.004d6ed0
mov ecx, dword [esi + 0x98]
lea edx, [esp + 0x24]
add esp, 0xc
mov dword [esp + 0x60], 0x58
mov dword [esp + 0x6c], str.XML_files_.xml_
mov dword [esp + 0x80], 0x104
mov eax, dword [ecx + 0x54]
mov ecx, dword [ecx + 0x6c]
mov dword [esp + 0x64], eax
mov eax, dword [esi + 0xac]
mov dword [esp + 0x7c], eax
mov eax, dword [ecx]
push 0x2ddc6a4f
push edx
mov dword [esp + 0x9c], 0x880802
call dword [eax]
mov eax, dword [esp + 0x18]
mov dword [esp + 0x90], eax
mov eax, dword [esi + 0x94]
mov edi, dword [eax + 0x4cc]
mov eax, dword [esi + 0xb0]
mov dword [esp + 0x14], eax
test eax, eax
je 0x43d997
lea eax, [edi + 8]
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
xor edx, edx
mov eax, 0xa6a44314
div dword [edi + 0x20]
mov eax, dword [edi + 0x2c]
xor ecx, ecx
mov eax, dword [eax + edx*4]
test eax, eax
je 0x43d954
mov ecx, eax
cmp dword [ecx], 0xa6a44314
je 0x43d954
mov ecx, dword [ecx + 4]
test ecx, ecx
jne 0x43d937
add edi, 8
push edi
mov edi, dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call edi
jmp 0x43d99d
add edi, 8
test ecx, ecx
jne 0x43d966
push edi
mov edi, dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call edi
jmp 0x43d99d
cmp dword [ecx + 8], reloc.WS2_32.dll_connect
je 0x43d97a
push edi
mov edi, dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call edi
jmp 0x43d99d
push dword [ecx + 0xc]
push dword [ecx + 0x14]
push dword [esp + 0x1c]
call fcn.004d6950
add esp, 0xc
push edi
mov edi, dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call edi
jmp 0x43d9ae
mov edi, dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push dword [esi + 0xb0]
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov eax, dword [esi + 0xb0]
mov dword [esp + 0x8c], eax
mov eax, dword [esi + 0x74]
mov dword [esp + 0x20], eax
mov eax, dword [esi + 0x98]
mov dword [esp + 0x3c], 1
mov dword [esp + 0x2c], 1
mov dword [esp + 0x1c], eax
cmp dword [eax + 0x24], 0
jne 0x43dd20
push 0xa4
call fcn.004d9a7e
movups xmm0, xmmword [esp + 0x64]
mov esi, eax
add esp, 4
mov dword [esi], 0
mov dword [esi + 4], 0
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0x8c
mov dword [esi + 0x10], 0x3cf785ed
mov dword [esi + 0x14], 0
mov dword [esi + 0x18], 0x58
movups xmmword [esi + 0x1c], xmm0
movups xmm0, xmmword [esp + 0x70]
movups xmmword [esi + 0x2c], xmm0
movups xmm0, xmmword [esp + 0x80]
movups xmmword [esi + 0x3c], xmm0
movups xmm0, xmmword [esp + 0x90]
movups xmmword [esi + 0x4c], xmm0
movups xmm0, xmmword [esp + 0xa0]
movups xmmword [esi + 0x5c], xmm0
movq xmm0, qword [esp + 0xb0]
movq qword [esi + 0x6c], xmm0
mov dword [esi + 0x74], 0x2c
movups xmm0, xmmword [esp + 0x20]
movups xmmword [esi + 0x78], xmm0
movups xmm0, xmmword [esp + 0x30]
movups xmmword [esi + 0x88], xmm0
movq xmm0, qword [esp + 0x40]
movq qword [esi + 0x98], xmm0
mov eax, dword [esp + 0x48]
mov dword [esi + 0xa0], eax
mov eax, dword [esp + 0x1c]
push dword [eax + 4]
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, dword [esp + 0x1c]
lea eax, [esp + 0x10]
push esi
push eax
mov dword [esp + 0x18], 1
call fcn.004070b0
cmp dword [esp + 0x10], 0
je 0x43dad1
push esi
call fcn.004d9a63
add esp, 4
mov eax, dword [esp + 0x1c]
push dword [eax + 4]
call edi
xor eax, eax
pop edi
pop esi
mov ecx, dword [esp + 0x314]
xor ecx, esp
call fcn.004d3878
mov esp, ebp
pop ebp
ret 4
cmp dword [esi + 0x60], 0
je 0x43dba6
mov eax, dword [edi]
mov esi, dword [esi + 0xa4]
mov dword [esp + 0x18], 0
mov edi, dword [eax + 0x4c0]
lea eax, [edi + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push 1
push 0
lea eax, [esp + 0x1c]
mov ecx, edi
push eax
lea eax, [esp + 0x24]
push eax
push esi
call fcn.00474260
mov esi, eax
lea eax, [edi + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [esp + 0x18]
test esi, esi
mov esi, dword [esp + 0x10]
jne 0x43dbe9
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
push dword [esi + 0xac]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x43db89
push 0
lea eax, [esp + 0x5c]
push eax
push dword [esp + 0x1c]
push dword [esp + 0x24]
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [esp + 0x18]
test eax, eax
je 0x43db9a
push eax
call fcn.004d9a63
add esp, 4
cmp edi, 0xffffffff
je 0x43dba6
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esi + 0xac]
test eax, eax
je 0x43dbc3
push eax
call fcn.004d9a63
add esp, 4
mov dword [esi + 0xac], 0
mov eax, dword [esi + 0xb0]
test eax, eax
je case.default.0x43d395
push eax
call fcn.004d9a63
add esp, 4
mov dword [esi + 0xb0], 0
jmp case.default.0x43d395
or edi, 0xffffffff
jmp 0x43db8d
mov eax, dword [esi + 0x5c]
test eax, eax
jne 0x43dd5f
mov eax, dword [edi]
mov edi, dword [eax + 0x4e0]
lea eax, [edx + 0x18]
mov dword [esp + 0x10], eax
test eax, eax
je 0x43dd43
lea eax, [edi + 0x1c]
push eax
mov dword [esp + 0x20], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [edi + 0x14]
lea edx, [esp + 0x14]
push edx
mov ecx, dword [eax + 0x49c]
mov eax, dword [edi + 0x34]
push dword [eax + 0x9c]
add eax, 0x10
push eax
push dword [esp + 0x1c]
call fcn.004a73f0
test eax, eax
jne 0x43dd38
mov eax, dword [edi + 0x14]
push dword [esp + 0x10]
push dword [esp + 0x18]
mov ecx, dword [eax + 0x4a0]
mov eax, dword [edi + 0x34]
push dword [eax + 0x9c]
call fcn.004ace30
test eax, eax
jne 0x43dd38
mov eax, dword [edi + 0x34]
push 0
mov ecx, dword [eax + 0x9c]
mov eax, dword [ecx + 4]
lea ecx, [ecx + eax*2]
mov eax, dword [ecx + 0xc]
add eax, dword [ecx + 8]
lea ecx, [ecx + 8]
test byte [ecx + eax*2 + 8], 1
lea edx, [ecx + eax*2]
mov eax, dword [edi + 0x14]
mov ecx, dword [eax + 0x4ec]
lea eax, [edx + 0x1c]
mov edx, 0
cmove eax, edx
push eax
call fcn.00479620
test eax, eax
jne 0x43dd38
lea eax, [edi + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [esi + 0x74]
mov ecx, dword [esi + 0x98]
mov dword [esp + 0x20], eax
mov eax, dword [esi + 0xa0]
mov dword [esp + 0x3c], 1
mov dword [esp + 0x2c], 1
cmp dword [eax + 0xc], 0
lea eax, [esp + 0x20]
push eax
push 1
push ecx
jne 0x43dd14
push 0x3e94a340
push 0
call fcn.0045c180
xor eax, eax
pop edi
pop esi
mov ecx, dword [esp + 0x314]
xor ecx, esp
call fcn.004d3878
mov esp, ebp
pop ebp
ret 4
push 0x51cdf157
push 0
call fcn.0045c180
xor eax, eax
pop edi
pop esi
mov ecx, dword [esp + 0x314]
xor ecx, esp
call fcn.004d3878
mov esp, ebp
pop ebp
ret 4
mov eax, dword [esp + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push 0
push 0
push ecx
mov ecx, dword [esi + 0x98]
push 0x1b42fc0e
push 0
call fcn.0045c180
jmp case.default.0x43d395
cmp eax, 1
jne case.default.0x43d395
cmp dword [esi + 0x60], eax
jne case.default.0x43d395
cmp dword [edx + 0xc], 0
lea eax, [edx + 0x18]
mov dword [esp + 0x1c], eax
mov eax, dword [edi]
mov edi, dword [esi + 0xa4]
mov ecx, dword [eax + 0x4e0]
mov eax, dword [edx + 0x38]
mov dword [esp + 0x18], ecx
mov dword [esp + 0x14], eax
jne 0x43ddc7
push eax
push edi
lea eax, [edx + 0x18]
push eax
push ecx
call fcn.0046e0e0
test eax, eax
je 0x43ded2
push 0
push 0
push ecx
mov ecx, dword [esi + 0x98]
push 0x3dd5a935
push 0
call fcn.0045c180
jmp case.default.0x43d395
cmp dword [esp + 0x1c], 0
je 0x43ded2
test edi, edi
je 0x43ded2
lea eax, [ecx + 0x1c]
push eax
mov dword [esp + 0x5c], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edx, dword [esp + 0x18]
mov eax, dword [edx + 0x14]
mov ecx, dword [eax + 0x49c]
mov eax, dword [edx + 0x34]
lea edx, [esp + 0x5c]
push edx
push dword [eax + 0x9c]
add eax, 0x10
push eax
push dword [esp + 0x28]
call fcn.004a73f0
test eax, eax
jne 0x43dec8
mov edx, dword [esp + 0x18]
push dword [esp + 0x1c]
push dword [esp + 0x60]
mov eax, dword [edx + 0x14]
mov ecx, dword [eax + 0x4a0]
mov eax, dword [edx + 0x34]
push dword [eax + 0x9c]
call fcn.004ace30
test eax, eax
jne 0x43dec8
mov eax, dword [esp + 0x18]
mov eax, dword [eax + 0x34]
mov ecx, dword [eax + 0x9c]
mov eax, dword [ecx + 4]
lea ecx, [ecx + eax*2]
mov eax, dword [ecx + 0xc]
add eax, dword [ecx + 8]
lea ecx, [ecx + 8]
test byte [ecx + eax*2 + 8], 1
lea edx, [ecx + eax*2]
mov eax, dword [esp + 0x18]
mov eax, dword [eax + 0x14]
mov ecx, dword [eax + 0x4ec]
lea eax, [esp + 0xcc]
push eax
lea eax, [edx + 0x1c]
mov edx, 0
cmove eax, edx
push eax
call fcn.00479620
test eax, eax
jne 0x43dec8
cmp dword [esp + 0x14], eax
jbe 0x43debe
mov esi, dword [esp + 0x14]
nop dword [eax + eax]
push edi
sub esp, 8
push dword [esp + 0x28]
push ecx
mov ecx, dword [esp + 0x2c]
call fcn.0046eb40
add edi, 0x20
sub esi, 1
jne 0x43dea0
mov esi, dword [esp + 0x10]
mov eax, dword [esp + 0x18]
add eax, 0x1c
push eax
jmp 0x43decc
push dword [esp + 0x58]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [esi + 0xa0]
push 0
push 0
push ecx
push 3
push ecx
mov ecx, dword [esi + 0x94]
add eax, 0x18
push eax
push 0x5aa01092
mov ecx, dword [ecx + 0x470]
call fcn.00403620
mov ecx, dword [esi + 0x94]
mov eax, dword [esi + 0xa0]
push 0
add eax, 0x18
mov ecx, dword [ecx + 0x478]
push eax
call fcn.0045bf70
mov ecx, dword [esi + 0x94]
push 1
push 0xa848126d
mov ecx, dword [ecx + 0x478]
call fcn.00407030
mov ecx, dword [esp + 0x31c]
mov eax, 1
pop edi
pop esi
xor ecx, esp
call fcn.004d3878
mov esp, ebp
pop ebp
ret 4