Function at 0x5f2e10
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x4c
push ebx
push ebp
mov ebp, dword [esp + 0x74]
push esi
mov esi, dword [esp + 0x5c]
push edi
xor edi, edi
push esi
mov dword [ebp], edi
mov eax, dword [esi]
and ah, 0xfd
mov dword [esp + 0x24], edi
mov dword [esp + 0x14], edi
mov dword [esp + 0x1c], 0xffffffff
mov dword [esp + 0x18], eax
call fcn.005f38e0
mov ebx, dword [esp + 0x74]
add esp, 4
cmp ebx, edi
mov edi, dword [esp + 0x74]
mov dword [esp + 0x28], eax
je 0x5f2ece
mov eax, dword [esp + 0x68]
test eax, eax
je 0x5f2e65
mov eax, dword [esi]
test ah, 0x88
je 0x5f2ece
mov eax, dword [ebx]
lea ecx, [esp + 0x6c]
lea edx, [esp + 0x68]
push ecx
push edx
push ebx
call dword [eax]
add esp, 0xc
test eax, eax
je 0x5f2e81
push ebp
jmp 0x5f3014
mov edx, dword [esp + 0x6c]
mov eax, dword [esp + 0x68]
push edx
lea ecx, [esp + 0x38]
push eax
lea edx, [esp + 0x34]
push ecx
lea eax, [esp + 0x30]
push edx
push eax
push edi
call fcn.005f3530
add esp, 0x18
test eax, eax
je 0x5f2ece
mov eax, dword [esi]
test ah, 0x80
je 0x5f2ece
mov ecx, dword [edi]
lea edx, [esp + 0x6c]
push ecx
lea eax, [esp + 0x6c]
push edx
push eax
push ebx
call fcn.006034a0
add esp, 0x10
test eax, eax
je 0x5f2ece
push ebp
jmp 0x5f3014
mov edx, dword [esi + 0xc]
mov eax, dword [esp + 0x78]
cmp dword [eax + edx*4], 0x7e2dc8
jne 0x5f2eee
mov dword [edi], 0
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x4c
ret
mov ecx, dword [esp + 0x6c]
mov edx, dword [esp + 0x68]
push ecx
lea eax, [esp + 0x38]
push edx
lea ecx, [esp + 0x34]
push eax
lea edx, [esp + 0x30]
push ecx
push edx
push edi
call fcn.005f3530
add esp, 0x18
test eax, eax
je 0x5f2f7e
mov ecx, dword [esp + 0x14]
cmp eax, 0x800
jne 0x5f2f70
test ch, 8
je 0x5f2f70
mov eax, dword [esp + 0x10]
push ebp
push 0xffffffffffffffff
push eax
mov eax, dword [esp + 0x30]
lea ecx, [esp + 0x1c]
push esi
lea edx, [esp + 0x44]
push ecx
mov ecx, dword [esp + 0x80]
push edx
mov edx, dword [esp + 0x80]
push eax
mov eax, dword [esp + 0x94]
push ebx
push ecx
push edx
push eax
push esi
push edi
call fcn.005f3760
add esp, 0x24
push eax
call fcn.005f2830
add esp, 0x14
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x4c
ret
mov edx, dword [esp + 0x28]
test edx, edx
jne 0x5f2f82
push ebp
jmp 0x5f3014
mov ecx, dword [esp + 0x14]
mov ebp, dword [edi]
test ebp, ebp
jne 0x5f2f93
mov edx, dword [esp + 0x2c]
add edx, 4
mov dword [esp + 0x20], edx
mov eax, dword [esp + 0x34]
mov edx, dword [esp + 0x68]
sub eax, edx
mov dword [esp + 0x70], eax
mov eax, ecx
and eax, 0x1ff
cmp eax, 0x102
je 0x5f3362
mov edx, dword [esp + 0x24]
mov eax, ecx
and eax, 0xff
cmp edx, eax
je 0x5f306a
mov eax, ecx
and eax, 0x4420
cmp eax, 0x4420
jne 0x5f302d
test byte [esi + 0x14], 0x20
lea eax, [esi + 0x14]
jne 0x5f302d
and ecx, 0xdf
cmp edx, ecx
jne 0x5f302d
mov edx, dword [esp + 0x78]
lea ecx, [esp + 0x10]
push ecx
lea ecx, [esp + 0x34]
push edx
mov edx, dword [esp + 0x70]
push ecx
mov ecx, dword [esp + 0x70]
push ebx
push ebp
push edx
push ecx
push eax
call fcn.005f2e10
add esp, 0x20
test eax, eax
je 0x5f3066
mov edx, dword [esp + 0x7c]
push edx
mov ecx, dword [esp + 0x14]
push 0xffffffffffffffff
push ecx
push esi
push eax
call fcn.005f2830
add esp, 0x14
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x4c
ret
mov eax, dword [esi]
test ah, 2
je 0x5f3044
mov dword [edi], 0
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x4c
ret
mov edx, dword [esp + 0x7c]
mov eax, dword [esp + 0x10]
push edx
push 0xffffffffffffffff
push eax
push esi
push 0x807
call fcn.005f2830
add esp, 0x14
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x4c
ret
mov edx, dword [esp + 0x24]
test dl, 0x20
je 0x5f33a9
lea ecx, [esp + 0x1c]
push esi
push ecx
call fcn.005f2310
mov edx, dword [esp + 0x24]
mov ecx, 1
add esp, 8
cmp edx, ecx
jbe 0x5f30b3
mov ebp, dword [esp + 0x78]
lea eax, [esi + 0x14]
cmp dword [eax], 0x103
je 0x5f30ab
mov edi, dword [eax + 0xc]
cmp dword [ebp + edi*4], 0
mov edi, dword [esp + 0x74]
jne 0x5f30b3
inc ecx
add eax, 0x14
cmp ecx, edx
jb 0x5f3095
mov eax, dword [edi]
cmp ecx, edx
jb 0x5f30e6
test eax, eax
jne 0x5f33a9
mov edx, dword [esp + 0x6c]
mov eax, dword [esp + 0x68]
push edx
push eax
push edi
call fcn.005f2760
add esp, 0xc
test eax, eax
je 0x5f339b
mov ecx, dword [esp + 0x7c]
push ecx
jmp 0x5f3382
test eax, eax
jne 0x5f30fa
mov eax, dword [esp + 0x6c]
mov ecx, dword [esp + 0x20]
sub eax, ecx
mov dword [esp + 0x38], eax
jmp 0x5f30fe
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x14]
test cl, 0xc0
je 0x5f3114
test ch, 0x10
mov dword [esp + 0x28], 1
je 0x5f311c
mov dword [esp + 0x28], 0
test ebx, ebx
je 0x5f3144
mov ecx, dword [ebx + 4]
mov edx, dword [esp + 0x70]
mov dword [esp + 0x34], ecx
mov ecx, dword [ebx + 0x14]
add ecx, edx
mov dword [esp + 0x70], 0
mov dword [ebx + 0x14], ecx
mov ebp, ecx
mov esi, 1
jmp 0x5f3155
xor ebp, ebp
mov esi, 1
mov dword [esp + 0x70], ebp
jmp 0x5f3155
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x28]
test ecx, ecx
jne 0x5f31ab
mov ecx, dword [esp + 0x14]
test ch, 4
je 0x5f316c
inc dword [esp + 0x18]
jmp 0x5f3180
mov edx, dword [esp + 0x60]
lea ecx, [esi + esi*4]
cmp dword [edx + ecx*4], 0x103
je 0x5f3266
mov ecx, dword [esp + 0x74]
cmp dword [ecx], 0
jne 0x5f31a1
mov ecx, dword [esp + 0x34]
cmp byte [ecx + ebp], 0
jne 0x5f31ab
mov dl, byte [ecx + ebp + 1]
test dl, dl
je 0x5f3266
jmp 0x5f31ab
cmp dword [esp + 0x70], eax
jae 0x5f3266
test ebx, ebx
je 0x5f31b9
mov eax, dword [ebx + 0x10]
mov ecx, dword [ebx + 0x14]
sub eax, ecx
jmp 0x5f31bb
sub eax, ebp
mov ecx, dword [esp + 0x60]
lea edx, [esi + esi*4]
lea edi, [ecx + edx*4]
mov ecx, dword [esp + 0x78]
lea edx, [esp + 0x10]
push edx
lea edx, [esp + 0x34]
push ecx
mov ecx, dword [esp + 0x6c]
push edx
push ebx
push eax
mov eax, dword [esp + 0x48]
add eax, ebp
push eax
push ecx
push edi
call fcn.005f2e10
add esp, 0x20
test eax, eax
jne 0x5f323d
mov eax, dword [esp + 0x30]
test ebx, ebx
je 0x5f3203
mov edx, dword [ebx + 4]
mov ebp, dword [ebx + 0x14]
mov dword [esp + 0x34], edx
jmp 0x5f3205
add ebp, eax
mov ecx, dword [esp + 0x70]
add ecx, eax
mov eax, dword [esp + 0x28]
test eax, eax
mov dword [esp + 0x70], ecx
jne 0x5f3262
mov eax, dword [esp + 0x14]
test ah, 4
jne 0x5f3151
lea eax, [esp + 0x1c]
push edi
push eax
call fcn.005f2310
mov eax, dword [esp + 0x24]
add esp, 8
add esi, eax
jmp 0x5f3151
mov ecx, dword [esp + 0x7c]
mov edx, dword [esp + 0x18]
push ecx
mov ecx, dword [esp + 0x14]
push edx
mov edx, dword [esp + 0x68]
push ecx
push edx
push eax
call fcn.005f2830
add esp, 0x14
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x4c
ret
mov eax, dword [esp + 0x38]
mov edx, dword [esp + 0x74]
cmp dword [edx], 0
jne 0x5f34f4
test ebx, ebx
je 0x5f34e1
mov eax, dword [ebx + 0x14]
mov ecx, 2
add eax, ecx
add ecx, ebp
mov dword [ebx + 0x14], eax
mov eax, ebp
mov dword [esp + 0x38], eax
mov dword [edx], ecx
mov ecx, dword [esp + 0x28]
test ecx, ecx
jne 0x5f33ad
mov ecx, dword [esp + 0x14]
test ch, 4
jne 0x5f33ad
mov edi, dword [esp + 0x60]
lea ecx, [esi + esi*4]
mov edx, dword [edi + ecx*4]
lea ecx, [edi + ecx*4]
cmp edx, 0x103
je 0x5f33ad
test dh, 2
jne 0x5f32d9
mov edx, dword [ecx + 0xc]
mov eax, dword [esp + 0x78]
cmp dword [eax + edx*4], 0x7e2dc8
jne 0x5f3307
push ecx
lea ecx, [esp + 0x20]
push ecx
call fcn.005f2310
mov ecx, dword [esp + 0x24]
add esp, 8
add esi, ecx
lea edx, [esi + esi*4]
lea ecx, [edi + edx*4]
mov edx, dword [edi + edx*4]
cmp edx, 0x103
jne 0x5f32c4
mov eax, dword [esp + 0x38]
jmp 0x5f33b1
lea eax, [esi + esi*4]
lea esi, [edi + eax*4 + 0x10]
mov eax, dword [edi + eax*4 + 0x10]
test eax, eax
je 0x5f333d
push eax
call fcn.00599dff
add esp, 4
inc eax
push eax
call sub.MSVCR80.dll_malloc
add esp, 4
mov dword [esp + 0x10], eax
test eax, eax
je 0x5f3341
mov ecx, dword [esi]
push ecx
push eax
call fcn.00599dfa
add esp, 8
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0x7c]
mov ecx, dword [esp + 0x18]
push edx
push ecx
push eax
push edi
push 0x805
call fcn.005f2830
add esp, 0x14
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x4c
ret
test ebp, ebp
jne 0x5f33a9
mov edx, dword [esp + 0x6c]
mov eax, dword [esp + 0x68]
push edx
push eax
push edi
call fcn.005f2760
add esp, 0xc
test eax, eax
je 0x5f339b
mov ecx, dword [esp + 0x7c]
push ecx
mov edx, dword [esp + 0x14]
push 0xffffffffffffffff
push edx
push esi
push eax
call fcn.005f2830
add esp, 0x14
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x4c
ret
mov eax, dword [edi]
mov ecx, dword [esp + 0x20]
sub eax, ecx
mov dword [esp + 0x38], eax
jmp 0x5f33ad
mov eax, dword [esp + 0x38]
mov edi, dword [esp + 0x60]
mov ecx, dword [edi + 0xc]
mov ebp, dword [esp + 0x78]
mov edx, dword [ebp + ecx*4]
lea ecx, [ebp + ecx*4]
test edx, edx
je 0x5f34a9
mov esi, dword [edi + 4]
test esi, esi
je 0x5f3481
mov edx, dword [esp + 0x24]
mov ebp, dword [esp + 0x74]
mov dword [esp + 0x3c], edx
mov edx, dword [esp + 0x68]
mov dword [esp + 0x50], edx
mov dword [esp + 0x4c], eax
lea edi, [edx + 1]
mov edx, dword [ebp]
mov dword [esp + 0x40], edi
mov edi, dword [esp + 0x64]
mov dword [esp + 0x54], edx
mov edx, dword [esp + 0x34]
mov dword [esp + 0x44], edi
mov dword [esp + 0x48], edx
mov dword [esp + 0x58], 0
mov eax, dword [ecx]
lea ecx, [esp + 0x3c]
push eax
push ecx
call esi
mov edx, dword [esp + 0x60]
add esp, 8
mov esi, eax
lea eax, [esp + 0x10]
push eax
mov dword [esp + 0x14], edx
call fcn.005f2970
add esp, 4
test esi, esi
je 0x5f345e
mov ecx, dword [esp + 0x7c]
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x10]
push ecx
mov ecx, dword [esp + 0x64]
push edx
push eax
push ecx
push esi
call fcn.005f2830
add esp, 0x14
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x4c
ret
mov edi, dword [esp + 0x60]
test ebx, ebx
je 0x5f34ad
test byte [edi], 0x20
je 0x5f3474
cmp dword [edi + 0x14], 0x103
jne 0x5f34ad
mov edx, dword [ebp]
mov eax, dword [ebx + 0x14]
add eax, edx
mov dword [ebx + 0x14], eax
jmp 0x5f34ad
mov eax, dword [esp + 0x68]
mov dword [edx], eax
mov ecx, dword [edi + 0xc]
test ebx, ebx
mov edx, dword [ebp + ecx*4]
mov ebp, dword [esp + 0x74]
mov eax, dword [ebp]
mov dword [edx + 4], eax
je 0x5f34ad
mov ecx, dword [ebp]
mov eax, dword [ebx + 0x14]
add eax, ecx
mov dword [ebx + 0x14], eax
jmp 0x5f34ad
mov ebp, dword [esp + 0x74]
mov eax, dword [edi]
test ah, 0x80
je 0x5f34d7
mov edx, dword [ebp]
mov eax, dword [esp + 0x68]
add eax, edx
lea ecx, [esp + 0x6c]
lea edx, [esp + 0x68]
mov dword [esp + 0x68], eax
mov eax, dword [ebx]
push ecx
push edx
push ebx
call dword [eax]
add esp, 0xc
test eax, eax
jne 0x5f34d9
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x4c
ret
mov ecx, dword [esp + 0x20]
mov eax, ebp
add ecx, ebp
mov dword [esp + 0x38], eax
mov dword [edx], ecx
jmp 0x5f3292
cmp dword [esp + 0x70], eax
je 0x5f3292
mov eax, dword [esp + 0x7c]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x10]
push eax
mov eax, dword [esp + 0x64]
push ecx
push edx
push eax
push 0x806
call fcn.005f2830
add esp, 0x14
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x4c
ret