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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x68
push esi
cmp dword [ebp + 0xc], 0
je 0x4fde35
mov eax, dword [ebp + 8]
push eax
call fcn.004fc4cf
add esp, 4
mov ecx, dword [ebp + 8]
add ecx, 0x800
push ecx
call fcn.0056530e
add esp, 4
mov dword [ebp + 0xc], eax
mov edx, dword [ebp + 8]
cmp dword [edx + 0x74], 0
je 0x4fde4c
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 8]
mov edx, dword [eax + 0x78]
cmp edx, dword [ecx + 0x1c]
je 0x4fdeae
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x74]
push ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x14]
push eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x14]
call dword [edx + 4]
add esp, 8
mov eax, dword [ebp + 8]
mov dword [eax + 0x78], 0
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x1c]
push edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x14]
push ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x14]
call dword [eax]
add esp, 8
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x74], eax
mov edx, dword [ebp + 8]
cmp dword [edx + 0x74], 0
jne 0x4fdea2
mov eax, 2
jmp 0x4fe2be
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x1c]
mov dword [eax + 0x78], edx
mov eax, dword [ebp + 8]
cmp dword [eax + 0x7c], 0
je 0x4fdec8
mov ecx, dword [ebp + 8]
mov edx, dword [ebp + 8]
mov eax, dword [ecx + 0x80]
cmp eax, dword [edx + 0x18]
je 0x4fdf30
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x7c]
push edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x14]
push ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x14]
call dword [eax + 4]
add esp, 8
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x80], 0
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x18]
push eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x14]
push edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x14]
call dword [ecx]
add esp, 8
mov edx, dword [ebp + 8]
mov dword [edx + 0x7c], eax
mov eax, dword [ebp + 8]
cmp dword [eax + 0x7c], 0
jne 0x4fdf21
mov eax, 2
jmp 0x4fe2be
mov ecx, dword [ebp + 8]
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x18]
mov dword [ecx + 0x80], eax
mov ecx, dword [ebp + 8]
add ecx, 0x88
mov dword [ebp - 0x20], ecx
mov edx, dword [ebp - 0x20]
mov dword [edx + 0x2f0], 0
push 0
push 0
mov eax, dword [ebp - 0x20]
push eax
call fcn.004fa432
add esp, 0xc
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x58]
mov dword [ebp - 0xc], edx
mov eax, dword [ecx + 0x5c]
mov dword [ebp - 8], eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x50]
mov dword [ebp - 0x1c], edx
mov eax, dword [ecx + 0x54]
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x10], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x14], 0
mov ecx, dword [ebp - 0x10]
cmp ecx, dword [ebp - 4]
jne 0x4fe056
cmp dword [ebp + 0xc], 0
je 0x4fdfda
lea edx, [ebp - 4]
push edx
mov eax, dword [ebp + 8]
add eax, 0x800
push eax
call fcn.00565400
add esp, 8
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x10], 0
cmp dword [ebp - 0x24], 0
je 0x4fdfcc
jmp 0x4fdf93
mov dword [ebp + 0xc], 0
mov dword [ebp - 4], 0
mov ecx, dword [ebp + 8]
cmp dword [ecx + 0x68], 0
jne 0x4fe056
mov dword [ebp - 0x10], 0
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x80]
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x7c]
mov dword [ebp - 0x24], edx
lea eax, [ebp - 4]
push eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x7c]
push edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x34]
push ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x34]
call dword [eax]
add esp, 0xc
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x6c], eax
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 4]
xor ecx, ecx
mov esi, dword [edx + 0x60]
add esi, eax
mov edx, dword [edx + 0x64]
adc edx, ecx
mov eax, dword [ebp + 8]
mov dword [eax + 0x60], esi
mov dword [eax + 0x64], edx
cmp dword [ebp - 4], 0
je 0x4fe04c
mov ecx, dword [ebp + 8]
cmp dword [ecx + 0x6c], 0
je 0x4fe056
mov edx, dword [ebp + 8]
mov dword [edx + 0x68], 1
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x1c]
sub ecx, dword [ebp - 0x14]
mov dword [ebp - 0x40], ecx
mov dword [ebp - 0x2c], 0
mov edx, dword [ebp + 8]
cmp dword [edx + 0x44], 0
je 0x4fe0bd
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 8]
mov edx, dword [eax + 0x48]
sub edx, dword [ecx + 0x50]
mov eax, dword [eax + 0x4c]
sbb eax, dword [ecx + 0x54]
mov dword [ebp - 0x48], edx
mov dword [ebp - 0x44], eax
mov ecx, dword [ebp - 0x40]
xor edx, edx
mov dword [ebp - 0x54], ecx
mov dword [ebp - 0x50], edx
mov eax, dword [ebp - 0x50]
cmp eax, dword [ebp - 0x44]
jb 0x4fe0bd
ja 0x4fe0a7
mov ecx, dword [ebp - 0x54]
cmp ecx, dword [ebp - 0x48]
jb 0x4fe0bd
mov edx, dword [ebp - 0x48]
mov dword [ebp - 0x40], edx
mov eax, dword [ebp + 8]
cmp dword [eax + 0x40], 0
je 0x4fe0bd
mov dword [ebp - 0x2c], 1
mov ecx, dword [ebp - 4]
sub ecx, dword [ebp - 0x10]
mov dword [ebp - 0x38], ecx
mov edx, dword [ebp - 0x40]
mov dword [ebp - 0x34], edx
lea eax, [ebp - 0x3c]
push eax
mov ecx, dword [ebp - 0x2c]
push ecx
mov edx, dword [ebp - 0x10]
xor eax, eax
cmp edx, dword [ebp - 4]
sete al
push eax
lea ecx, [ebp - 0x38]
push ecx
mov edx, dword [ebp - 0x24]
add edx, dword [ebp - 0x10]
push edx
lea eax, [ebp - 0x34]
push eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x74]
add edx, dword [ebp - 0x14]
push edx
mov eax, dword [ebp - 0x20]
push eax
call fcn.004fa5ec
add esp, 0x20
mov dword [ebp - 0x30], eax
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 0x30]
mov dword [ecx + 0x7b4], edx
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x3c]
mov dword [eax + 0x7b0], ecx
mov edx, dword [ebp - 0x10]
add edx, dword [ebp - 0x38]
mov dword [ebp - 0x10], edx
mov eax, dword [ebp - 0x14]
add eax, dword [ebp - 0x34]
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 0x38]
xor eax, eax
mov esi, dword [ecx + 0x58]
add esi, edx
mov ecx, dword [ecx + 0x5c]
adc ecx, eax
mov edx, dword [ebp + 8]
mov dword [edx + 0x58], esi
mov dword [edx + 0x5c], ecx
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x34]
xor edx, edx
mov esi, dword [eax + 0x50]
add esi, ecx
mov eax, dword [eax + 0x54]
adc eax, edx
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x50], esi
mov dword [ecx + 0x54], eax
cmp dword [ebp - 0x38], 0
jne 0x4fe174
cmp dword [ebp - 0x34], 0
je 0x4fe183
cmp dword [ebp - 0x30], 0
jne 0x4fe183
mov dword [ebp - 0x58], 0
jmp 0x4fe18a
mov dword [ebp - 0x58], 1
mov edx, dword [ebp - 0x58]
mov dword [ebp - 0x28], edx
cmp dword [ebp - 0x28], 0
jne 0x4fe19e
mov eax, dword [ebp - 0x34]
cmp eax, dword [ebp - 0x40]
jb 0x4fe1e7
cmp dword [ebp - 0x14], 0
je 0x4fe1e7
mov ecx, dword [ebp - 0x14]
push ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x74]
push eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x38]
push edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x38]
call dword [ecx]
add esp, 0xc
mov dword [ebp - 0x4c], eax
mov edx, dword [ebp - 0x4c]
cmp edx, dword [ebp - 0x14]
je 0x4fe1e0
mov eax, dword [ebp + 0x10]
mov dword [eax + 0x38], 9
mov eax, 9
jmp 0x4fe2be
mov dword [ebp - 0x14], 0
mov ecx, dword [ebp + 8]
cmp dword [ecx + 0x3c], 0
je 0x4fe2af
cmp dword [ebp - 0x30], 0
jne 0x4fe2af
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x58]
sub eax, dword [ebp - 0xc]
mov ecx, dword [edx + 0x5c]
sbb ecx, dword [ebp - 8]
mov dword [ebp - 0x60], eax
mov dword [ebp - 0x5c], ecx
cmp dword [ebp - 0x5c], 0
ja 0x4fe248
jb 0x4fe224
cmp dword [ebp - 0x60], 0x400000
jae 0x4fe248
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x50]
sub eax, dword [ebp - 0x1c]
mov ecx, dword [edx + 0x54]
sbb ecx, dword [ebp - 0x18]
mov dword [ebp - 0x68], eax
mov dword [ebp - 0x64], ecx
cmp dword [ebp - 0x64], 0
ja 0x4fe248
cmp dword [ebp - 0x68], 0x400000
jb 0x4fe2af
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x54]
push eax
mov ecx, dword [edx + 0x50]
push ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x5c]
push eax
mov ecx, dword [edx + 0x58]
push ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x3c]
push eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x3c]
call dword [edx]
add esp, 0x14
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0
je 0x4fe291
mov eax, dword [ebp + 0x10]
mov dword [eax + 0x38], 0xa
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp - 0x30]
mov dword [ecx + 0x30], edx
mov eax, dword [ebp - 0x30]
jmp 0x4fe2be
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x58]
mov dword [ebp - 0xc], ecx
mov edx, dword [eax + 0x5c]
mov dword [ebp - 8], edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x50]
mov dword [ebp - 0x1c], ecx
mov edx, dword [eax + 0x54]
mov dword [ebp - 0x18], edx
cmp dword [ebp - 0x28], 0
je 0x4fe2b9
xor eax, eax
jmp 0x4fe2be
jmp 0x4fdf93
pop esi
mov esp, ebp
pop ebp
ret