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

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x5bb51f
sub esp, 0x38
mov edx, dword [esp + 0x3c]
mov eax, dword [edx + 0x3c]
mov ebx, dword [edx + 0x2ac]
add ebx, 0xfffffffc
cmp eax, ebx
jbe 0x5baf97
mov ecx, dword [0x7f8238]
xor ebx, ebx
jmp 0x5bafce
mov ecx, dword [edx + 0x28c]
mov ebx, dword [edx + 0x288]
mov ebp, dword [edx + 0x290]
cmp ecx, eax
jb 0x5bb519
sub ecx, eax
sub ebp, eax
xchg ebp, ebx
neg ebx
xchg ebp, ebx
sar ebp, 0x1f
and ebp, eax
cmp ecx, 3
jbe 0x5bb50f
mov ebx, dword [ebx + ebp]
xor ecx, ecx
test ecx, ecx
jne 0x5bb4e2
mov ecx, ebx
and ebx, 0xffff
cmp ebx, 0x454e
je 0x5bb4ca
cmp ebx, 0x454c
je 0x5bb4b2
cmp ebx, 0x584c
je 0x5bb49a
cmp ebx, 0x5a56
je 0x5bb482
cmp ecx, 0x4550
jne 0x5bb46a
mov dword [esp + 0x24], eax
mov dword [edx + 0x60], 0x4550
lea eax, [0x61da80]
mov dword [esp], eax
lea ecx, [edx + 0x64]
mov dword [esp + 0x2c], ecx
mov dword [esp + 4], ecx
call fcn.00409410
mov eax, dword [esp + 8]
lea ecx, [0x61da80]
mov dword [esp], ecx
mov dword [esp + 4], eax
call fcn.004b8200
mov eax, dword [esp + 8]
mov dword [esp + 0x28], eax
mov ecx, dword [esp + 0x3c]
mov dword [esp], ecx
lea edx, [0x5f1780]
mov dword [esp + 4], edx
mov edx, dword [esp + 0x2c]
mov dword [esp + 8], edx
mov edx, dword [esp + 0x24]
lea ebx, [edx + 4]
mov dword [esp + 0xc], ebx
mov dword [esp + 0x10], eax
call fcn.005b2650
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
test eax, eax
jne 0x5bb45e
lea eax, [0x62ad80]
mov dword [esp], eax
call fcn.0040bcc0
mov eax, dword [esp + 4]
mov dword [esp + 0x34], eax
lea ecx, [0x62aa00]
mov dword [esp], ecx
call fcn.0040bcc0
mov eax, dword [esp + 4]
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x24]
lea ebx, [edx + ecx]
lea ecx, [edx + ecx + 4]
mov edx, dword [esp + 0x3c]
mov ebp, dword [edx + 0x2ac]
add ebp, 0xfffffffe
cmp ecx, ebp
jbe 0x5bb0f5
mov ebx, dword [0x7f8238]
mov ebp, dword [0x7f823c]
xor esi, esi
jmp 0x5bb131
mov ebp, dword [edx + 0x28c]
mov esi, dword [edx + 0x288]
mov edi, dword [edx + 0x290]
cmp ebp, ecx
jb 0x5bb506
sub edi, ebx
sub ebp, ebx
lea ebx, [edi - 4]
neg ebx
sar ebx, 0x1f
and ebx, ecx
add ebp, 0xfffffffc
cmp ebp, 1
jbe 0x5bb4fa
movzx esi, word [esi + ebx]
xor ebx, ebx
xor ebp, ebp
test ebx, ebx
jne 0x5bb452
mov dword [esp + 0x30], eax
mov dword [esp + 0x20], ecx
cmp si, 0x10b
je 0x5bb22e
cmp si, 0x20b
jne 0x5bb216
lea eax, [0x62aa00]
mov dword [esp], eax
call fcn.00409410
mov eax, dword [esp + 8]
lea ecx, [0x62aa00]
mov dword [esp], ecx
mov dword [esp + 4], eax
call fcn.004b8200
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0x3c]
mov dword [esp], ecx
lea edx, [0x5f19c0]
mov dword [esp + 4], edx
mov edx, dword [esp + 0x30]
mov dword [esp + 8], edx
mov ebx, dword [esp + 0x20]
mov dword [esp + 0xc], ebx
mov dword [esp + 0x10], eax
call fcn.005b2650
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
test eax, eax
jne 0x5bb20a
mov eax, dword [esp + 0x3c]
mov byte [eax + 0x295], 1
lea ecx, [0x62aa00]
mov dword [esp], ecx
mov edx, dword [esp + 0x30]
mov dword [esp + 4], edx
call fcn.00409410
mov eax, dword [esp + 8]
lea ecx, [0x62aa00]
mov edx, dword [esp + 0x3c]
mov dword [edx + 0x78], ecx
mov ecx, dword [0x81dcc0]
test ecx, ecx
jne 0x5bb1fd
mov dword [edx + 0x7c], eax
jmp 0x5bb2e5
lea edi, [edx + 0x7c]
call fcn.00462500
jmp 0x5bb2e5
mov dword [esp + 0x40], ecx
mov dword [esp + 0x44], edx
add esp, 0x38
ret
mov eax, dword [0x7f81d0]
mov ecx, dword [0x7f81d4]
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], ecx
add esp, 0x38
ret
lea eax, [0x62ad80]
mov dword [esp], eax
mov ecx, dword [esp + 0x34]
mov dword [esp + 4], ecx
call fcn.00409410
mov eax, dword [esp + 8]
lea ecx, [0x62ad80]
mov dword [esp], ecx
mov dword [esp + 4], eax
call fcn.004b8200
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0x3c]
mov dword [esp], ecx
lea edx, [0x5f1980]
mov dword [esp + 4], edx
mov edx, dword [esp + 0x34]
mov dword [esp + 8], edx
mov ebx, dword [esp + 0x20]
mov dword [esp + 0xc], ebx
mov dword [esp + 0x10], eax
call fcn.005b2650
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
test eax, eax
jne 0x5bb446
mov eax, dword [esp + 0x3c]
mov byte [eax + 0x294], 1
lea ecx, [0x62ad80]
mov dword [esp], ecx
mov edx, dword [esp + 0x34]
mov dword [esp + 4], edx
call fcn.00409410
mov eax, dword [esp + 8]
lea ecx, [0x62ad80]
mov edx, dword [esp + 0x3c]
mov dword [edx + 0x78], ecx
mov ecx, dword [0x81dcc0]
test ecx, ecx
jne 0x5bb2dd
mov dword [edx + 0x7c], eax
jmp 0x5bb2e5
lea edi, [edx + 0x7c]
call fcn.00462500
movzx ecx, byte [edx + 0x295]
test cl, cl
je 0x5bb301
mov ebx, dword [esp + 0x30]
mov ebp, dword [ebx + 0x18]
test ebp, 0xffff
jne 0x5bb323
jmp 0x5bb305
mov ebx, dword [esp + 0x30]
movzx ebp, byte [edx + 0x294]
xchg ebp, eax
test al, al
xchg ebp, eax
je 0x5bb354
mov esi, dword [esp + 0x34]
mov eax, edx
mov edx, dword [esi + 0x1c]
test edx, 0xffff
je 0x5bb33b
mov eax, dword [0x7f81c8]
mov ecx, dword [0x7f81cc]
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], ecx
add esp, 0x38
ret
xchg ebp, eax
test al, al
xchg ebp, eax
je 0x5bb350
add edx, dword [esi + 0x38]
cmp edx, 0x80000000
jae 0x5bb385
test cl, cl
jmp 0x5bb358
test cl, cl
jmp 0x5bb358
test cl, cl
mov eax, edx
je 0x5bb42b
mov ecx, dword [ebx + 0x18]
mov edx, dword [ebx + 0x1c]
mov ebx, dword [ebx + 0x38]
add ecx, ebx
adc edx, 0
cmp edx, 0xffff0800
sete cl
seta dl
and ecx, 1
or edx, ecx
test dl, dl
je 0x5bb42b
mov ecx, dword [eax + 0x274]
inc ecx
mov edx, dword [eax + 0x270]
mov ebx, dword [eax + 0x278]
cmp ebx, ecx
jae 0x5bb3f5
mov dword [esp], edx
mov dword [esp + 4], ecx
mov dword [esp + 8], ebx
mov dword [esp + 0xc], 1
lea eax, [0x5ff840]
mov dword [esp + 0x10], eax
call fcn.0044a040
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
mov ebx, dword [esp + 0x3c]
mov dword [ebx + 0x278], edx
mov edx, dword [0x81dcc0]
test edx, edx
jne 0x5bb3e6
mov dword [ebx + 0x270], eax
jmp 0x5bb3f1
lea edi, [ebx + 0x270]
call fcn.00462500
mov edx, eax
mov eax, ebx
mov dword [eax + 0x274], ecx
mov ebx, dword [0x7f3050]
lea ebp, [edx + ecx*8 - 4]
mov esi, dword [0x7f3054]
mov dword [ebp], esi
lea edi, [edx + ecx*8 - 8]
mov ecx, dword [0x81dcc0]
test ecx, ecx
jne 0x5bb420
mov dword [edi], ebx
jmp 0x5bb42b
mov ecx, eax
mov eax, ebx
call fcn.00462500
mov eax, ecx
mov byte [eax + 0x299], 1
mov dword [esp + 0x40], 0
mov dword [esp + 0x44], 0
add esp, 0x38
ret
mov dword [esp + 0x40], ecx
mov dword [esp + 0x44], edx
add esp, 0x38
ret
mov dword [esp + 0x40], ebx
mov dword [esp + 0x44], ebp
add esp, 0x38
ret
mov dword [esp + 0x40], ecx
mov dword [esp + 0x44], edx
add esp, 0x38
ret
mov eax, dword [0x7f81d8]
mov ecx, dword [0x7f81dc]
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], ecx
add esp, 0x38
ret
mov eax, dword [0x7f81f0]
mov ecx, dword [0x7f81f4]
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], ecx
add esp, 0x38
ret
mov eax, dword [0x7f81f8]
mov ecx, dword [0x7f81fc]
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], ecx
add esp, 0x38
ret
mov eax, dword [0x7f81e0]
mov ecx, dword [0x7f81e4]
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], ecx
add esp, 0x38
ret
mov eax, dword [0x7f81e8]
mov ecx, dword [0x7f81ec]
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], ecx
add esp, 0x38
ret
mov eax, dword [0x7f8218]
mov ecx, dword [0x7f821c]
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], ecx
add esp, 0x38
ret
mov eax, 1
mov ecx, ebp
call fcn.00462580
mov eax, ecx
mov ecx, ebp
call fcn.004625f0
mov eax, 3
call fcn.00462580
call fcn.004625f0
nop
call fcn.004610f0
jmp fcn.005baf60