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

Disassembly:
sub esp, 0x48
push ebx
push ebp
push esi
mov esi, edx
push edi
mov dword [esp + 0x20], esi
mov eax, dword [esi]
mov ebp, ecx
shr eax, 6
and eax, 3
mov dword [esp + 0x1c], eax
jne 0x5e37f0
mov eax, dword [esi + 4]
add eax, 0x14
mov ecx, dword [eax + 4]
test ecx, ecx
je 0x5e3c16
mov ebx, dword [eax + 8]
sub ebx, ecx
sar ebx, 1
test ebx, ebx
mov dword [esp + 0x1c], ebx
jle 0x5e3c16
mov eax, dword [esp + 0x5c]
push ebp
mov ecx, dword [eax + 0x28]
mov edx, dword [ecx + 0x10]
mov ecx, dword [edx + 0x1c]
call fcn.005f3dd0
mov edi, dword [eax + 4]
test ebx, ebx
mov dword [esp + 0x28], eax
mov dword [esp + 0x18], 0
jle 0x5e3c16
jmp 0x5e3725
mov esi, dword [esp + 0x20]
mov eax, dword [esi + 4]
mov edx, dword [esp + 0x18]
mov ecx, dword [eax + 0x18]
xor eax, eax
mov ax, word [ecx + edx*2]
lea ecx, [ecx + edx*2]
mov esi, eax
shr eax, 0xb
mov dword [esp + 0x2c], ecx
push eax
shr esi, 2
mov ecx, 0x857a08
and esi, 0x1ff
call fcn.0064bee0
mov edx, dword [eax + 4]
lea ecx, [esi + esi*2]
mov eax, dword [esp + 0x2c]
xor esi, esi
lea ebx, [edx + ecx*4]
mov cl, byte [eax]
and ecx, 3
test edi, edi
mov dword [esp + 0x2c], ecx
jle 0x5e37d1
mov edx, dword [esp + 0x28]
xor ecx, ecx
mov eax, dword [edx]
xor edx, edx
mov dl, byte [eax + esi*2]
mov cl, byte [eax + esi*2 + 1]
lea eax, [eax + esi*2]
lea eax, [esp + 0x24]
mov dword [esp + 0x44], ecx
push eax
mov eax, dword [esp + 0x60]
lea ecx, [esp + 0x44]
mov dword [esp + 0x44], edx
push ecx
mov ecx, dword [esp + 0x34]
mov edx, ebp
push eax
call fcn.005e40e0
mov ecx, dword [esp + 0x64]
mov edx, dword [esp + 0x60]
push ebx
push ecx
mov ecx, dword [esp + 0x78]
push edx
mov edx, dword [esp + 0x78]
push ecx
mov ecx, dword [esp + 0x78]
push edx
mov edx, dword [esp + 0x38]
push ecx
mov ecx, eax
call fcn.004e1c30
inc esi
cmp esi, edi
jl 0x5e3771
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
inc eax
cmp eax, ecx
mov dword [esp + 0x18], eax
jl 0x5e3721
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x48
ret 0x18
mov edx, dword [esp + 0x5c]
push ebp
mov eax, dword [edx + 0x28]
mov ecx, dword [eax + 0x10]
mov ecx, dword [ecx + 0x1c]
call fcn.005f3dd0
mov ebx, eax
mov eax, dword [esi + 4]
add eax, 0x14
mov dword [esp + 0x3c], ebx
mov edx, dword [ebx + 4]
mov ecx, dword [eax + 4]
mov dword [esp + 0x18], edx
test ecx, ecx
je 0x5e382c
mov eax, dword [eax + 8]
sub eax, ecx
sar eax, 1
test eax, eax
mov dword [esp + 0x2c], eax
jg 0x5e389f
xor esi, esi
test edx, edx
jle 0x5e3c16
mov edi, dword [esp + 0x70]
mov edx, dword [ebx]
xor ecx, ecx
mov cl, byte [edx + esi*2 + 1]
lea eax, [edx + esi*2]
xor edx, edx
mov dl, byte [eax]
lea eax, [esp + 0x70]
mov dword [esp + 0x44], ecx
push eax
mov eax, dword [esp + 0x60]
lea ecx, [esp + 0x44]
mov dword [esp + 0x44], edx
push ecx
mov ecx, dword [esp + 0x24]
mov edx, ebp
push eax
call fcn.005e40e0
mov ecx, dword [esp + 0x64]
mov edx, dword [esp + 0x60]
push ecx
mov ecx, dword [esp + 0x70]
push edx
mov edx, dword [esp + 0x70]
push edi
push ecx
push edx
mov edx, dword [esp + 0x84]
mov ecx, eax
call fcn.004e0600
inc esi
cmp esi, dword [esp + 0x18]
jl 0x5e383a
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x48
ret 0x18
mov al, byte [0x85a7a0]
test al, 1
jne 0x5e38ca
mov dl, al
mov ecx, 0x85a7b0
or dl, 1
mov byte [0x85a7a0], dl
call fcn.004df8c0
push 0x5e3f70
call fcn.006601e7
add esp, 4
mov cl, byte [0x85a7a0]
mov al, 2
test al, cl
jne 0x5e38fc
mov dl, cl
mov ecx, 0x40
or dl, al
or eax, 0xffffffff
mov edi, 0x85a7c0
push fcn.00555d40
rep stosd dword es:[edi], eax
mov byte [0x85a7a0], dl
call fcn.006601e7
add esp, 4
mov eax, dword [esp + 0x6c]
mov ecx, dword [esp + 0x70]
mov edx, dword [eax]
mov eax, dword [ecx]
sub eax, edx
mov dword [esp + 0x10], eax
jns 0x5e391c
mov dword [esp + 0x10], 0
mov eax, dword [esp + 0x10]
mov ecx, dword [ecx + 8]
sub ecx, edx
cmp ecx, 0x40
mov dword [esp + 0x14], ecx
jle 0x5e3936
mov dword [esp + 0x14], 0x40
mov ecx, dword [esp + 0x14]
cmp eax, ecx
jge 0x5e3948
lea edi, [eax*4 + 0x85a7c0]
sub ecx, eax
or eax, 0xffffffff
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x18]
xor esi, esi
test eax, eax
jle 0x5e39a4
mov ecx, dword [ebx]
xor edx, edx
mov dl, byte [ecx + esi*2]
lea eax, [ecx + esi*2]
xor ecx, ecx
mov cl, byte [eax + 1]
lea eax, [esp + 0x28]
mov dword [esp + 0x44], ecx
push eax
mov eax, dword [esp + 0x60]
lea ecx, [esp + 0x44]
mov dword [esp + 0x44], edx
push ecx
mov ecx, dword [esp + 0x24]
mov edx, ebp
push eax
call fcn.005e40e0
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
push ecx
push edx
mov edx, dword [esp + 0x30]
push 0x85a7b0
mov ecx, eax
call fcn.004e0030
inc esi
cmp esi, dword [esp + 0x18]
jl 0x5e3952
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x1c], 0
test eax, eax
jle 0x5e3bef
mov eax, dword [esp + 0x20]
mov ecx, dword [eax + 4]
mov eax, dword [esp + 0x1c]
mov edx, dword [ecx + 0x18]
mov ecx, 0x857a08
lea edi, [edx + eax*2]
xor eax, eax
mov ax, word [edi]
mov esi, eax
shr eax, 0xb
shr esi, 2
push eax
and esi, 0x1ff
call fcn.0064bee0
mov edx, dword [eax + 4]
mov al, byte [edi]
lea ecx, [esi + esi*2]
and eax, 3
mov edi, eax
lea ebx, [edx + ecx*4]
je 0x5e3b6e
cmp byte [ebx + 4], 4
jne 0x5e3b08
cmp dword [esp + 0x18], 1
jle 0x5e3b08
mov al, byte [0x85a7a0]
test al, 4
jne 0x5e3a3d
mov dl, al
mov ecx, 0x85a8c0
or dl, 4
mov byte [0x85a7a0], dl
call fcn.004df8c0
push 0x5e3f60
call fcn.006601e7
add esp, 4
mov ecx, dword [esp + 0x6c]
mov edx, dword [esp + 0x70]
mov ecx, dword [ecx]
mov eax, dword [edx]
sub eax, ecx
mov dword [esp + 0x28], eax
jns 0x5e3a59
mov dword [esp + 0x28], 0
mov eax, dword [edx + 8]
sub eax, ecx
cmp eax, 0x40
mov dword [esp + 0x24], eax
jle 0x5e3a6f
mov dword [esp + 0x24], 0x40
mov edx, dword [esp + 0x5c]
push ebp
mov eax, dword [edx + 0x28]
mov ecx, dword [eax + 0x10]
mov ecx, dword [ecx + 0x1c]
call fcn.005f3dd0
mov ecx, dword [eax + 4]
xor esi, esi
test ecx, ecx
mov dword [esp + 0x30], eax
mov dword [esp + 0x38], ecx
jle 0x5e3ae9
jmp 0x5e3a99
mov eax, dword [esp + 0x30]
mov edx, dword [eax]
xor ecx, ecx
mov cl, byte [edx + esi*2 + 1]
lea eax, [edx + esi*2]
xor edx, edx
mov dl, byte [eax]
lea eax, [esp + 0x34]
mov dword [esp + 0x4c], ecx
push eax
mov eax, dword [esp + 0x60]
lea ecx, [esp + 0x4c]
mov dword [esp + 0x4c], edx
push ecx
mov edx, ebp
mov ecx, edi
push eax
call fcn.005e40e0
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x28]
push ecx
push edx
mov edx, dword [esp + 0x3c]
push 0x85a8c0
mov ecx, eax
call fcn.004e0030
inc esi
cmp esi, dword [esp + 0x38]
jl 0x5e3a95
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
push ebx
push eax
push ecx
mov edx, 0x85a7b0
mov ecx, 0x85a8c0
call fcn.004e03b0
jmp 0x5e3bda
mov eax, dword [esp + 0x18]
xor esi, esi
test eax, eax
jle 0x5e3bda
mov edx, dword [esp + 0x3c]
xor ecx, ecx
mov eax, dword [edx]
xor edx, edx
mov dl, byte [eax + esi*2]
mov cl, byte [eax + esi*2 + 1]
lea eax, [eax + esi*2]
lea eax, [esp + 0x40]
mov dword [esp + 0x54], ecx
push eax
mov eax, dword [esp + 0x60]
lea ecx, [esp + 0x54]
mov dword [esp + 0x54], edx
push ecx
mov edx, ebp
mov ecx, edi
push eax
call fcn.005e40e0
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
push ebx
push ecx
push edx
mov edx, dword [esp + 0x4c]
push 0x85a7b0
mov ecx, eax
call fcn.004e01a0
inc esi
cmp esi, dword [esp + 0x18]
jl 0x5e3b16
jmp 0x5e3bda
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
cmp ecx, eax
jge 0x5e3bda
mov eax, ecx
lea esi, [eax*4 + 0x85a7c0]
cmp ecx, 0x3c
jle 0x5e3ba8
mov al, byte [ebx + 4]
xor edx, edx
cmp al, 4
sete dl
shl edx, 6
add edx, ecx
xor eax, eax
mov edi, dword [edx*4 + 0x74c658]
mov edx, dword [ebx + 8]
mov al, byte [edi + edx]
jmp 0x5e3bc5
mov dl, byte [ebx + 4]
xor eax, eax
cmp dl, 4
sete al
shl eax, 6
add eax, ecx
mov edx, dword [eax*4 + 0x74c658]
mov eax, dword [ebx + 8]
mov eax, dword [edx + eax]
mov edx, dword [esi]
add esi, 4
not eax
and edx, eax
mov eax, dword [esp + 0x14]
mov dword [esi - 4], edx
inc ecx
cmp ecx, eax
jl 0x5e3b83
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x2c]
inc eax
cmp eax, ecx
mov dword [esp + 0x1c], eax
jl 0x5e39b8
mov ecx, dword [esp + 0x64]
mov edx, dword [esp + 0x60]
mov eax, dword [esp + 0x70]
push 0x85a7c0
push ecx
mov ecx, dword [esp + 0x74]
push edx
mov edx, dword [esp + 0x74]
push eax
push ecx
mov ecx, 0x85a7b0
call fcn.004e49d0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x48
ret 0x18