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

Disassembly:
push 0xffffffffffffffff
push 0x66e148
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x54
push ebx
push ebp
push esi
push edi
mov edi, ecx
push edi
lea ecx, [esp + 0x18]
mov dword [esp + 0x24], edi
call fcn.00499b80
mov eax, dword [edi + 0x44]
xor ebx, ebx
push ebx
push ebx
push ecx
cmp eax, ebx
mov dword [esp + 0x78], ebx
mov ecx, esp
jne 0x5f29de
lea eax, [esp + 0x20]
mov dword [esp + 0x80], esp
push eax
call fcn.00499b80
mov ecx, edi
call fcn.005f2d80
lea esi, [eax + 1]
jmp 0x5f2d50
lea edx, [esp + 0x20]
mov dword [esp + 0x40], esp
push edx
call fcn.00499b80
mov ecx, edi
call fcn.005f2d80
mov ecx, dword [edi + 0x40]
mov eax, dword [edi + 0x50]
mov dword [esp + 0x1c], eax
mov ecx, dword [ecx + 0x14]
mov edx, dword [ecx]
call dword [edx + 0x3c]
add eax, 0x68
mov ecx, dword [eax]
mov dword [esp + 0x40], ecx
mov edx, dword [eax + 4]
mov dword [esp + 0x44], edx
mov ecx, dword [eax + 8]
mov dword [esp + 0x48], ecx
mov ecx, edi
mov edx, dword [eax + 0xc]
lea eax, [esp + 0x40]
push eax
mov dword [esp + 0x50], edx
call fcn.005f2750
cmp dword [edi + 0x48], ebx
jne 0x5f2a3c
mov ecx, dword [esp + 0x44]
mov dword [esp + 0x1c], ecx
lea edx, [edi + 4]
lea ecx, [esp + 0x38]
push edx
call fcn.00499b80
push 2
lea ecx, [esp + 0x54]
mov byte [esp + 0x70], 1
call fcn.0049b150
mov byte [esp + 0x6c], 2
jmp 0x5f2a64
mov ebx, dword [esp + 0x30]
push ebx
push 0xd
lea ecx, [esp + 0x1c]
call fcn.0049a9e0
mov esi, eax
mov dword [esp + 0x10], 0
mov dword [esp + 0x24], esi
cmp esi, 0xffffffff
mov byte [esp + 0x6c], 3
je 0x5f2ab4
sub eax, ebx
lea ecx, [esp + 0x28]
push eax
push ebx
push ecx
lea ecx, [esp + 0x20]
call fcn.0049a250
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x70], 4
call fcn.00499cd0
mov byte [esp + 0x6c], 3
lea ecx, [esp + 0x28]
jmp 0x5f2adb
lea edx, [esp + 0x2c]
push ebx
push edx
lea ecx, [esp + 0x1c]
call fcn.0049a220
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x70], 5
call fcn.00499cd0
mov byte [esp + 0x6c], 3
lea ecx, [esp + 0x2c]
call fcn.00499a60
mov eax, dword [esp + 0x14]
test eax, eax
je 0x5f2aed
mov eax, dword [eax + 4]
jmp 0x5f2aef
xor eax, eax
dec eax
cmp esi, eax
jne 0x5f2b00
mov dword [esp + 0x24], 0xffffffff
mov esi, dword [esp + 0x24]
mov eax, dword [esp + 0x54]
push 0xffffffffffffffff
mov ebp, eax
inc eax
push eax
lea ecx, [esp + 0x58]
call fcn.0049b180
mov eax, dword [esp + 0x50]
lea ecx, [esi + 1]
push ecx
mov dword [esp + 0x34], ecx
lea edx, [esp + 0x14]
mov ecx, esp
mov dword [esp + 0x1c], esp
push edx
mov word [eax + ebp*2], bx
call fcn.00499b80
mov ecx, edi
call fcn.005f2570
fld dword [esp + 0x1c]
fsub dword [edi + 0x4c]
fstp dword [esp + 0x18]
fcomp dword [esp + 0x18]
fnstsw ax
test ah, 0x41
jne 0x5f2c66
fld dword [esp + 0x1c]
fcomp dword [esp + 0x44]
fnstsw ax
test ah, 0x40
je 0x5f2b6a
mov dword [edi + 0x48], 1
mov eax, dword [esp + 0x10]
test eax, eax
je 0x5f2b77
mov eax, dword [eax + 4]
jmp 0x5f2b79
xor eax, eax
cdq
sub eax, edx
lea edx, [esp + 0x10]
sar eax, 1
push eax
mov eax, dword [esp + 0x1c]
push eax
push ecx
mov ecx, esp
mov dword [esp + 0x48], esp
push edx
call fcn.00499b80
mov ecx, edi
call fcn.005f3a20
push ecx
mov esi, eax
mov eax, esp
mov dword [esp + 0x40], esp
push esi
push eax
lea ecx, [esp + 0x1c]
call fcn.0049a930
mov ecx, edi
call fcn.005f2570
fcomp dword [esp + 0x18]
fnstsw ax
test ah, 0x41
jne 0x5f2bc3
dec esi
mov eax, dword [esp + 0x54]
push 0xffffffffffffffff
mov edi, eax
inc eax
push eax
lea ecx, [esp + 0x58]
call fcn.0049b180
mov ecx, dword [esp + 0x50]
push 0xffffffffffffffff
mov word [ecx + edi*2], si
mov ecx, dword [esp + 0x54]
mov eax, dword [esp + 0x58]
mov ebx, eax
mov di, word [ecx + eax*2 - 2]
mov bp, word [ecx + eax*2 - 4]
inc eax
lea ecx, [esp + 0x54]
push eax
call fcn.0049b180
mov edx, dword [esp + 0x50]
lea eax, [esp + 0x34]
add ebp, edi
push esi
push eax
lea ecx, [esp + 0x18]
mov word [edx + ebx*2], bp
call fcn.0049a220
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x70], 6
call fcn.00499cd0
lea ecx, [esp + 0x34]
mov byte [esp + 0x6c], 3
call fcn.00499a60
push ecx
lea edx, [esp + 0x14]
mov ecx, esp
mov dword [esp + 0x40], esp
push edx
call fcn.00499b80
mov ecx, dword [esp + 0x24]
call fcn.005f2570
fcomp dword [esp + 0x18]
mov edi, dword [esp + 0x20]
fnstsw ax
test ah, 0x41
je 0x5f2b54
mov esi, dword [esp + 0x24]
mov eax, dword [esp + 0x10]
test eax, eax
je 0x5f2c73
mov ebp, dword [eax + 4]
jmp 0x5f2c75
xor ebp, ebp
mov eax, dword [esp + 0x54]
push 0xffffffffffffffff
mov ebx, eax
inc eax
push eax
lea ecx, [esp + 0x58]
call fcn.0049b180
mov eax, dword [esp + 0x50]
lea ecx, [esp + 0x10]
mov byte [esp + 0x6c], 2
mov word [eax + ebx*2], bp
call fcn.00499a60
cmp esi, 0xffffffff
jne 0x5f2a60
mov eax, dword [esp + 0x14]
test eax, eax
je 0x5f2cf3
mov esi, dword [eax + 4]
movsx eax, byte [esi + eax + 0xb]
cmp al, 0xd
jne 0x5f2cf3
mov eax, dword [esp + 0x54]
push 0xffffffffffffffff
mov edi, eax
inc eax
push eax
lea ecx, [esp + 0x58]
call fcn.0049b180
mov ecx, dword [esp + 0x50]
push 0xffffffffffffffff
mov word [ecx + edi*2], si
mov eax, dword [esp + 0x58]
mov esi, eax
inc eax
push eax
lea ecx, [esp + 0x58]
call fcn.0049b180
mov edx, dword [esp + 0x50]
mov word [edx + esi*2], 0
mov esi, dword [esp + 0x54]
lea eax, [esi*4]
push eax
call fcn.006247b3
mov edx, dword [esp + 0x78]
add esp, 4
mov dword [edx], eax
xor eax, eax
test esi, esi
jle 0x5f2d2b
mov ecx, dword [esp + 0x50]
mov edi, dword [edx]
mov cx, word [ecx + eax*2]
and ecx, 0xffff
mov dword [edi + eax*4], ecx
inc eax
cmp eax, esi
jl 0x5f2d13
mov eax, esi
lea ecx, [esp + 0x50]
cdq
sub eax, edx
mov byte [esp + 0x6c], 1
mov esi, eax
sar esi, 1
call fcn.0049b170
lea ecx, [esp + 0x38]
mov byte [esp + 0x6c], 0
call fcn.00499a60
lea ecx, [esp + 0x14]
mov dword [esp + 0x6c], 0xffffffff
call fcn.00499a60
mov ecx, dword [esp + 0x64]
mov eax, esi
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x60
ret 4