Function at 0x52e6a0
Capabilities:
Resolve function by parsing pe exports
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x544490
mov eax, dword fs:[0]
push eax
sub esp, 0x38
push ebx
push ebp
push esi
push edi
mov eax, dword [0x597c40]
xor eax, esp
push eax
lea eax, [esp + 0x4c]
mov dword fs:[0], eax
call fcn.004111a6
xor ecx, ecx
xor esi, esi
cmp eax, esi
setne cl
cmp ecx, esi
jne 0x52e6e3
push 0x80004005
call fcn.00401670
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea ebx, [eax + 0x10]
mov dword [esp + 0x14], ebx
mov ecx, dword [esp + 0x5c]
push esi
push esi
mov dword [esp + 0x5c], esi
mov edx, dword [ecx + 0xa20]
push 0x1004
push edx
call dword [sym.imp.USER32.dll_SendMessageA]
push esi
push 0x80
push 2
push esi
push esi
push 0x40000000
mov ebp, eax
push str.WEHTeleportList.txt
mov dword [esp + 0x60], ebp
call dword [sym.imp.KERNEL32.dll_CreateFileA]
push esi
push esi
mov edi, eax
push esi
push edi
mov dword [esp + 0x28], edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp ebp, esi
jle 0x52e975
mov edi, dword [esp + 0x5c]
add edi, 0xa00
push 6
push esi
lea eax, [esp + 0x48]
push eax
mov ecx, edi
call fcn.00413de9
mov ebp, eax
push 5
push esi
lea ecx, [esp + 0x44]
push ecx
mov ecx, edi
mov byte [esp + 0x60], 1
call fcn.00413de9
mov ebx, eax
push 4
push esi
lea edx, [esp + 0x40]
push edx
mov ecx, edi
mov byte [esp + 0x60], 2
call fcn.00413de9
mov dword [esp + 0x5c], eax
push 3
push esi
lea eax, [esp + 0x3c]
push eax
mov ecx, edi
mov byte [esp + 0x60], 3
call fcn.00413de9
mov dword [esp + 0x1c], eax
push 2
push esi
lea ecx, [esp + 0x38]
push ecx
mov ecx, edi
mov byte [esp + 0x60], 4
call fcn.00413de9
mov dword [esp + 0x20], eax
push 1
push esi
lea edx, [esp + 0x34]
push edx
mov ecx, edi
mov byte [esp + 0x60], 5
call fcn.00413de9
mov dword [esp + 0x24], eax
push 0
push esi
lea eax, [esp + 0x30]
push eax
mov ecx, edi
mov byte [esp + 0x60], 6
call fcn.00413de9
mov byte [esp + 0x54], 7
mov ecx, dword [ebp]
mov edx, dword [ebx]
mov eax, dword [eax]
push ecx
mov ecx, dword [esp + 0x60]
push edx
mov edx, dword [ecx]
mov ecx, dword [esp + 0x24]
push edx
mov edx, dword [ecx]
mov ecx, dword [esp + 0x2c]
push edx
mov edx, dword [ecx]
mov ecx, dword [esp + 0x34]
push edx
mov edx, dword [ecx]
push edx
push eax
push str.__s__nType:_s_nMapID:_s_nXPos:_s_nYPos:_s_nZPos:_s_nComment:_s_n_n
lea ecx, [esp + 0x34]
push ecx
call fcn.00401750
mov byte [esp + 0x78], 6
mov eax, dword [esp + 0x4c]
add eax, 0xfffffff0
add esp, 0x24
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x52e84e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x54], 5
mov eax, dword [esp + 0x2c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x52e873
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x54], 4
mov eax, dword [esp + 0x30]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x52e898
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x54], 3
mov eax, dword [esp + 0x34]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x52e8bd
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x54], 2
mov eax, dword [esp + 0x38]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x52e8e2
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x54], 1
mov eax, dword [esp + 0x3c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x52e907
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x54], 0
mov eax, dword [esp + 0x40]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x52e92c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ebx, dword [esp + 0x14]
cmp dword [ebx - 4], 1
mov ebp, dword [ebx - 0xc]
jle 0x52e947
push ebp
lea ecx, [esp + 0x18]
call fcn.00401500
mov ebx, dword [esp + 0x14]
push 0
lea edx, [esp + 0x4c]
push edx
push ebp
mov ebp, dword [esp + 0x24]
push ebx
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
push 2
push 0
push 0
push ebp
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
inc esi
cmp esi, dword [esp + 0x44]
jl 0x52e751
mov edi, ebp
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebx - 8]
push eax
push ebx
call fcn.00504b99
add esp, 8
test eax, eax
js 0x52e9d3
cmp eax, dword [ebx - 8]
jg 0x52e9d3
mov dword [ebx - 0xc], eax
mov byte [eax + ebx], 0
add ebx, 0xfffffff0
mov dword [esp + 0x54], 0xffffffff
lea eax, [ebx + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x52e9bd
mov ecx, dword [ebx]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push ebx
call eax
mov ecx, dword [esp + 0x4c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x44
ret 4
push 0x80070057
call fcn.00401670
int3