Function at 0x4387d0
Capabilities:
Read file on windows
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x529857
mov eax, dword fs:[0]
push eax
mov eax, 0x2c58
call fcn.0051a950
mov eax, dword [0x56b1dc]
xor eax, esp
mov dword [esp + 0x2c54], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x56b1dc]
xor eax, esp
push eax
lea eax, [esp + 0x2c6c]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x2c7c]
lea ebx, [esp + 0x20]
mov dword [esp + 0x54], ebp
call fcn.00439ec0
lea esi, [ebp + 0x14]
mov edi, esi
mov dword [esp + 0x2c74], 0
call fcn.00401dd0
mov dword [esp + 0x2c74], 0xffffffff
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x438863
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push esi
mov ecx, 0x535ef0
call fcn.0040d440
add esp, 4
test al, al
jne 0x438a0c
lea ecx, [esp + 0x20]
push esi
push ecx
mov ebx, str._sgim_usr.mem
call fcn.004036c0
add esp, 8
add ebp, 0x18
mov edi, ebp
mov dword [esp + 0x2c74], 1
call fcn.00401dd0
or edi, 0xffffffff
mov dword [esp + 0x2c74], edi
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
mov ecx, edi
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4388ca
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x14]
push esi
push ecx
mov ebx, str.pinyin.pyb
call fcn.004036c0
mov dword [esp + 0x2c7c], 2
mov edx, dword [esp + 0x1c]
push 0
push edx
call fcn.00501abc
add esp, 0x10
cmp eax, edi
jne 0x438925
mov dword [esp + 0x2c74], edi
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
mov edx, edi
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x43891e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, edi
jmp 0x438ef2
mov ecx, dword [esp + 0x14]
push 0x536eac
push ecx
call fcn.00501b96
mov esi, eax
add esp, 8
test esi, esi
jne 0x438959
mov dword [esp + 0x2c74], edi
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
mov ecx, edi
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jmp 0x438912
push 0x2042
lea ecx, [esp + 0xc2a]
push 0
push ecx
mov word [esp + 0xc30], 0
call fcn.00508d80
xor edi, edi
push edi
push 0xc
push esi
call fcn.005015da
push esi
call fcn.00501916
add esp, 0x1c
test eax, eax
jne 0x4389ea
lea ebx, [esp + 0xc24]
cmp edi, 0x19d
jge 0x4389ea
push esi
push 8
xor eax, eax
lea edx, [esp + 0x68]
push 1
push edx
mov byte [esp + 0x70], 0
mov dword [esp + 0x71], eax
mov dword [esp + 0x75], eax
mov byte [esp + 0x79], al
call fcn.005018fb
add esp, 0x10
push 0xa
push ebx
push 0xffffffffffffffff
lea eax, [esp + 0x6c]
push eax
push 0
push 0
call dword [0x531340]
push esi
add edi, 1
add ebx, 0x14
call fcn.00501916
add esp, 4
test eax, eax
je 0x438996
push esi
call fcn.00501c1b
mov eax, dword [ebp]
push 0
push eax
call fcn.00501abc
add esp, 0xc
cmp eax, 0xffffffff
jne 0x438a14
lea ecx, [esp + 0x14]
call fcn.00402660
or eax, 0xffffffff
jmp 0x438ef2
mov eax, dword [ebp]
push 0x53709c
push eax
call fcn.00501b96
mov ebp, eax
xor esi, esi
add esp, 8
cmp ebp, esi
mov dword [esp + 0x50], ebp
je 0x438a03
push esi
push 0x6c
push ebp
mov dword [esp + 0x4c], esi
mov dword [esp + 0x50], esi
mov dword [esp + 0x28], esi
mov dword [esp + 0x38], esi
mov dword [esp + 0x58], esi
call fcn.005015da
push ebp
push 4
lea ecx, [esp + 0x60]
push 1
push ecx
call fcn.005018fb
mov eax, dword [esp + 0x68]
add esp, 0x1c
cmp eax, esi
jne 0x438a81
push ebp
call fcn.00501c1b
add esp, 4
lea ecx, [esp + 0x14]
call fcn.00402660
xor eax, eax
jmp 0x438ef2
jl 0x438edb
push esi
push 0x280052
push ebp
call fcn.005015da
push ebp
push 4
lea edx, [esp + 0x40]
push 1
push edx
call fcn.005018fb
mov eax, dword [esp + 0x48]
add esp, 0x1c
cmp eax, esi
je 0x438a68
jl 0x438edb
push esi
push 0x70
push ebp
call fcn.005015da
push ebp
push 4
lea eax, [esp + 0x54]
push 1
push eax
call fcn.005018fb
mov eax, dword [esp + 0x5c]
add esp, 0x1c
cmp eax, 0x27ffe6
jge 0x438edb
mov edi, 0x27ffe6
sub edi, eax
cmp edi, 0x9fffff
mov dword [esp + 0x5c], edi
ja 0x438edb
push esi
push 0x280056
push ebp
call fcn.005015da
push ebp
push 4
lea ecx, [esp + 0x58]
push 1
push ecx
call fcn.005018fb
mov eax, dword [esp + 0x60]
add esp, 0x1c
cmp eax, 0x77ffb2
jge 0x438edb
mov ebx, 0x77ffb2
sub ebx, eax
cmp ebx, 0x9fffff
mov dword [esp + 0x58], ebx
ja 0x438edb
push esi
push 0x28005a
push ebp
call fcn.005015da
push ebp
push 4
lea edx, [esp + 0x30]
push 1
push edx
call fcn.005018fb
mov eax, dword [esp + 0x38]
add esp, 0x1c
cmp eax, esi
jg 0x438b69
cmp eax, 0xa00000
jge 0x438edb
lea esi, [edi + 1]
push esi
call fcn.005002a8
push esi
push 0
push eax
mov dword [esp + 0x4c], eax
call fcn.00508d80
mov eax, 0x28004e
push 0
sub eax, edi
push eax
push ebp
call fcn.005015da
mov ecx, dword [esp + 0x58]
push ebp
push edi
push 1
push ecx
call fcn.005018fb
lea esi, [ebx + 1]
push esi
call fcn.005002a8
push esi
mov edi, eax
xor esi, esi
push esi
push edi
mov dword [esp + 0x6c], edi
call fcn.00508d80
mov edx, 0xfffffffd
push 2
sub edx, ebx
push edx
push ebp
call fcn.005015da
add esp, 0x48
push ebp
push ebx
push 1
push edi
call fcn.005018fb
mov eax, dword [esp + 0x2c]
add eax, 1
push eax
call fcn.005002a8
mov ecx, dword [esp + 0x30]
add ecx, 1
push ecx
mov edi, eax
push esi
push edi
mov dword [esp + 0x58], edi
call fcn.00508d80
push esi
push 0x28006a
push ebp
call fcn.005015da
mov edx, dword [esp + 0x48]
push ebp
push edx
push 1
push edi
call fcn.005018fb
xor edi, edi
add esp, 0x3c
cmp dword [esp + 0x2c], esi
mov dword [esp + 0x28], edi
mov dword [esp + 0x24], esi
mov dword [esp + 0x20], esi
jle 0x438ea0
jmp 0x438c38
mov edi, dword [esp + 0x28]
mov ebx, dword [esp + 0x58]
cmp edi, ebx
jge 0x438ea0
mov eax, dword [esp + 0x30]
mov bl, byte [edi + eax]
push 0x3e8
lea edx, [esp + 0x70]
mov ecx, eax
push 0
push edx
lea esi, [edi + ecx + 1]
call fcn.00508d80
movzx eax, bl
add esp, 0xc
cmp eax, 0x3e8
jle 0x438c6d
mov al, 0xe8
movzx ebx, al
push ebx
lea eax, [esp + 0x70]
push esi
push eax
call fcn.00505700
add esp, 0xc
lea ecx, [esp + 0x18]
call fcn.00402680
xor esi, esi
test ebx, ebx
mov byte [esp + 0x2c74], 3
jle 0x438cf1
mov cx, word [esp + esi + 0x6c]
mov dword [esp + 0x34], 0
mov word [esp + 0x34], cx
mov ebp, dword [esp + 0x34]
cmp ebp, 0x19c
lea edi, [esp + 0x18]
jg 0x438cdf
test esi, esi
je 0x438cc6
mov edx, str.wysczr
call fcn.00411700
lea edx, [ebp + ebp*4]
lea edx, [esp + edx*4 + 0xc24]
call fcn.00411700
add esi, 2
cmp esi, ebx
jl 0x438c96
jmp 0x438ce9
mov edx, 0x536e88
call fcn.00402760
mov ebp, dword [esp + 0x50]
mov edi, dword [esp + 0x28]
lea edx, [esp + 0x18]
push edx
mov ecx, 0x536e88
call fcn.0040d440
add esp, 4
test al, al
je 0x438d14
lea eax, [edi + ebx + 5]
mov dword [esp + 0x28], eax
jmp 0x438e7a
mov ecx, dword [esp + 0x30]
add edi, ebx
mov esi, dword [edi + ecx + 1]
mov dword [esp + 0x34], edi
lea eax, [esi - 0x1c]
test eax, eax
jl 0x438e67
mov edx, dword [esp + 0x1c]
add edx, 0xffffffff
cmp eax, edx
jg 0x438e6f
mov eax, dword [esp + 0x38]
mov eax, dword [esi + eax - 0x1c]
sub eax, dword [esp + 0x40]
mov ebx, dword [esp + 0x5c]
mov edx, dword [esp + 0x3c]
movzx ecx, byte [eax + edx]
lea edi, [eax + 1]
add ebx, 0xffffffff
cmp edi, ebx
jg 0x438e6f
push ecx
lea ecx, [eax + edx + 1]
push ecx
lea edx, [esp + 0x74]
push edx
call fcn.00505700
lea eax, [esi - 0x18]
add esp, 0xc
test eax, eax
jl 0x438d8e
cmp eax, dword [esp + 0x1c]
jge 0x438d8e
mov eax, dword [esp + 0x38]
mov ecx, dword [esi + eax - 0x18]
mov dword [esp + 0x24], ecx
mov edi, dword [esp + 0x24]
test edi, edi
jne 0x438da0
mov dword [esp + 0x24], 1
jmp 0x438db3
lea edx, [edi - 0xb]
cmp edx, 0x2704
ja 0x438db7
mov dword [esp + 0x24], 0xa
mov edi, dword [esp + 0x24]
push 0x7ce
lea eax, [esp + 0x45a]
push 0
push eax
mov word [esp + 0x460], 0
call fcn.00508d80
add esp, 0xc
push 0x3e8
lea ecx, [esp + 0x458]
push ecx
push 0xffffffffffffffff
lea edx, [esp + 0x78]
push edx
push 0
push 0x3a8
call dword [0x531340]
lea eax, [esp + 0x454]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x438e03
sub eax, edx
sar eax, 1
cmp eax, 1
je 0x438e5f
cmp edi, 0x270f
ja 0x438e5f
lea eax, [esp + 0x48]
push eax
lea ecx, [esp + 0x458]
call fcn.00402550
mov ecx, dword [esp + 0x54]
push edi
lea eax, [esp + 0x4c]
mov byte [esp + 0x2c78], 4
mov edx, dword [ecx]
mov edx, dword [edx + 8]
push eax
lea eax, [esp + 0x20]
push eax
call edx
lea ecx, [esp + 0x48]
mov byte [esp + 0x2c74], 3
call fcn.00402660
mov eax, dword [esp + 0x38]
mov esi, dword [esi + eax - 0xc]
test esi, esi
jne 0x438d22
mov ecx, dword [esp + 0x34]
add ecx, 5
mov dword [esp + 0x28], ecx
lea ecx, [esp + 0x18]
mov byte [esp + 0x2c74], 2
call fcn.00402660
mov eax, dword [esp + 0x20]
add eax, 1
cmp eax, dword [esp + 0x2c]
mov dword [esp + 0x20], eax
jl 0x438c30
mov edx, dword [esp + 0x38]
push edx
call fcn.00500319
mov eax, dword [esp + 0x34]
push eax
call fcn.00500319
mov ecx, dword [esp + 0x44]
push ecx
call fcn.00500319
push ebp
call fcn.00501c1b
mov edx, dword [esp + 0x64]
mov esi, dword [edx + 0x2c]
add esp, 0x10
lea ecx, [esp + 0x14]
call fcn.00402660
mov eax, esi
jmp 0x438ef2
push ebp
call fcn.00501c1b
add esp, 4
lea ecx, [esp + 0x14]
call fcn.00402660
mov eax, 0xfffffffe
mov ecx, dword [esp + 0x2c6c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x2c54]
xor ecx, esp
call fcn.004ff939
add esp, 0x2c64
ret 4