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

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xffffffe0
mov ebp, edx
mov esi, eax
lea eax, [ebp + ebp*8]
mov edx, dword [esi + 0x19c]
mov edx, dword [edx + 0x78]
lea ebx, [edx + eax*8]
mov byte [ebx + 0x41], 0
cmp dword [ebx + 0x3c], 0x40
jge 0x531687
mov eax, dword [esi + 0x19c]
cmp dword [eax + 0x70], 0xc
jg 0x53161b
cmp dword [ebx + 0x3c], 2
jge 0x531687
cmp byte [ebx + 0x40], 0
je 0x531627
cmp byte [ebx + 0x38], 2
jne 0x531633
cmp dword [ebx + 0x18], 0xffffffff
jne 0x531651
cmp dword [ebx + 0x14], 0xffffffff
jne 0x531651
cmp byte [ebx + 0x40], 0
je 0x53163f
cmp byte [ebx + 0x38], 2
jae 0x53168b
cmp dword [ebx + 0x10], 0xffffffff
jne 0x531649
cmp dword [ebx + 0xc], 0xffffffff
je 0x53168b
cmp dword [ebx + 0x3c], 2
jl 0x53168b
cmp dword [ebx + 0x2c], 0xffffffff
jne 0x531687
cmp dword [ebx + 0x28], 0xffffffff
jne 0x531687
cmp dword [ebx + 0x34], 0xffffffff
jne 0x531687
cmp dword [ebx + 0x30], 0xffffffff
jne 0x531687
cmp byte [ebx + 0x24], 0
je 0x531675
cmp byte [ebx + 0x25], 0
jne 0x531687
cmp byte [ebx + 0x24], 0
jne 0x531681
cmp byte [ebx + 0x25], 0
je 0x53168b
cmp dword [ebx + 0x3c], 3
jl 0x53168b
xor edi, edi
jmp 0x5316e5
mov eax, dword [esi + 0x19c]
cmp dword [eax + 0x70], 0xc
jle 0x5316d9
cmp dword [ebx + 0x3c], 2
jge 0x5316d9
cmp dword [ebx + 0x2c], 0xffffffff
jne 0x5316d9
cmp dword [ebx + 0x28], 0xffffffff
jne 0x5316d9
cmp dword [ebx + 0x34], 0xffffffff
jne 0x5316d9
cmp dword [ebx + 0x30], 0xffffffff
jne 0x5316d9
cmp byte [ebx + 0x24], 0
jne 0x5316d9
cmp byte [ebx + 0x25], 0
jne 0x5316d9
cmp byte [ebx + 0x40], 0
je 0x5316cd
cmp byte [ebx + 0x38], 2
jae 0x5316e0
cmp dword [ebx + 0x10], 0xffffffff
jne 0x5316d7
cmp dword [ebx + 0xc], 0xffffffff
je 0x5316e0
mov edi, 1
jmp 0x5316e5
mov edi, 2
cmp dword [ebx + 0x2c], 0xffffffff
jne 0x5316ef
cmp dword [ebx + 0x28], 0xffffffff
je 0x53171a
mov eax, dword [esi + 0x19c]
mov eax, dword [eax]
mov eax, dword [eax + 0x14e0]
xor edx, edx
push edx
push eax
mov eax, dword [ebx + 0x28]
mov edx, dword [ebx + 0x2c]
call fcn.00405158
mov dword [esp], eax
mov dword [esp + 4], edx
jmp 0x5317a2
cmp dword [ebx + 0x34], 0xffffffff
jne 0x531724
cmp dword [ebx + 0x30], 0xffffffff
je 0x53174c
mov eax, dword [esi + 0x19c]
mov eax, dword [eax]
mov eax, dword [eax + 0x14e0]
xor edx, edx
push edx
push eax
mov eax, dword [ebx + 0x30]
mov edx, dword [ebx + 0x34]
call fcn.00405158
mov dword [esp], eax
mov dword [esp + 4], edx
jmp 0x5317a2
cmp dword [ebx + 0x20], 0xffffffff
jne 0x531756
cmp dword [ebx + 0x1c], 0xffffffff
je 0x53177e
mov eax, dword [esi + 0x19c]
mov eax, dword [eax]
mov eax, dword [eax + 0x14e0]
xor edx, edx
push edx
push eax
mov eax, dword [ebx + 0x1c]
mov edx, dword [ebx + 0x20]
call fcn.00405158
mov dword [esp], eax
mov dword [esp + 4], edx
jmp 0x5317a2
mov eax, dword [esi + 0x19c]
mov eax, dword [eax]
mov eax, dword [eax + 0x14e0]
xor edx, edx
push edx
push eax
mov eax, dword [ebx + 4]
mov edx, dword [ebx + 8]
call fcn.00405158
mov dword [esp], eax
mov dword [esp + 4], edx
mov eax, dword [ebx]
mov dword [esp + 8], eax
movzx eax, byte [ebx + 0x38]
mov dword [esp + 0xc], eax
xor eax, eax
mov dword [esp + 0x10], eax
cmp byte [ebx + 0x40], 0
je 0x5317c4
mov dword [esp + 0x10], pe_nt_image_headers32
cmp dword [ebx + 0x2c], 0xffffffff
jne 0x5317e7
cmp dword [ebx + 0x28], 0xffffffff
jne 0x5317e7
cmp dword [ebx + 0x34], 0xffffffff
jne 0x5317e7
cmp dword [ebx + 0x30], 0xffffffff
jne 0x5317e7
xor eax, eax
mov dword [esp + 0x14], eax
jmp 0x5318c6
cmp dword [ebx + 0x2c], 0xffffffff
jne 0x531858
cmp dword [ebx + 0x28], 0xffffffff
jne 0x531858
or dword [esp + 0x10], 2
cmp byte [ebx + 0x24], 0
jne 0x531804
cmp byte [ebx + 0x25], 0
je 0x531819
mov eax, dword [ebx + 0x1c]
mov edx, dword [ebx + 0x20]
sub eax, dword [ebx + 0x30]
sbb edx, dword [ebx + 0x34]
mov dword [esp + 0x14], eax
jmp 0x5318c6
cmp byte [ebx + 0x38], 2
jae 0x531846
cmp byte [ebx + 0x40], 0
je 0x531846
cmp dword [ebx + 0x10], 0xffffffff
jne 0x53182f
cmp dword [ebx + 0xc], 0xffffffff
je 0x531846
mov eax, dword [ebx + 0xc]
mov edx, dword [ebx + 0x10]
sub eax, dword [ebx + 0x30]
sbb edx, dword [ebx + 0x34]
mov dword [esp + 0x14], eax
jmp 0x5318c6
mov eax, dword [ebx + 4]
mov edx, dword [ebx + 8]
sub eax, dword [ebx + 0x30]
sbb edx, dword [ebx + 0x34]
mov dword [esp + 0x14], eax
jmp 0x5318c6
or dword [esp + 0x10], 1
cmp byte [ebx + 0x24], 0
jne 0x531869
cmp byte [ebx + 0x25], 0
je 0x53187b
mov eax, dword [ebx + 0x1c]
mov edx, dword [ebx + 0x20]
sub eax, dword [ebx + 0x28]
sbb edx, dword [ebx + 0x2c]
mov dword [esp + 0x14], eax
jmp 0x5318b5
cmp byte [ebx + 0x38], 2
jae 0x5318a5
cmp byte [ebx + 0x40], 0
je 0x5318a5
cmp dword [ebx + 0x10], 0xffffffff
jne 0x531891
cmp dword [ebx + 0xc], 0xffffffff
je 0x5318a5
mov eax, dword [ebx + 0xc]
mov edx, dword [ebx + 0x10]
sub eax, dword [ebx + 0x28]
sbb edx, dword [ebx + 0x2c]
mov dword [esp + 0x14], eax
jmp 0x5318b5
mov eax, dword [ebx + 4]
mov edx, dword [ebx + 8]
sub eax, dword [ebx + 0x28]
sbb edx, dword [ebx + 0x2c]
mov dword [esp + 0x14], eax
cmp dword [ebx + 0x34], 0xffffffff
jne 0x5318bf
cmp dword [ebx + 0x30], 0xffffffff
je 0x5318c6
or dword [esp + 0x10], 2
cmp byte [ebx + 0x24], 0
jne 0x5318d2
cmp byte [ebx + 0x25], 0
je 0x531935
or dword [esp + 0x10], 4
cmp byte [ebx + 0x38], 2
jae 0x531901
cmp byte [ebx + 0x40], 0
je 0x531901
cmp dword [ebx + 0x10], 0xffffffff
jne 0x5318ed
cmp dword [ebx + 0xc], 0xffffffff
je 0x531901
mov eax, dword [ebx + 0xc]
mov edx, dword [ebx + 0x10]
sub eax, dword [ebx + 0x1c]
sbb edx, dword [ebx + 0x20]
mov dword [esp + 0x18], eax
jmp 0x531911
mov eax, dword [ebx + 4]
mov edx, dword [ebx + 8]
sub eax, dword [ebx + 0x1c]
sbb edx, dword [ebx + 0x20]
mov dword [esp + 0x18], eax
cmp byte [ebx + 0x24], 0
je 0x53193b
cmp byte [ebx + 0x25], 0
je 0x53193b
or dword [esp + 0x10], 8
mov ecx, 2
mov eax, dword [esp + 0x18]
xor edx, edx
div ecx
mov dword [esp + 0x18], eax
jmp 0x53193b
xor eax, eax
mov dword [esp + 0x18], eax
cmp byte [ebx + 0x38], 2
je 0x531947
cmp byte [ebx + 0x40], 0
jne 0x531960
cmp dword [ebx + 0x18], 0xffffffff
jne 0x531953
cmp dword [ebx + 0x14], 0xffffffff
je 0x531958
or dword [esp + 0x10], 0x10
xor eax, eax
mov dword [esp + 0x1c], eax
jmp 0x531989
cmp dword [ebx + 0x10], 0xffffffff
jne 0x531974
cmp dword [ebx + 0xc], 0xffffffff
jne 0x531974
xor eax, eax
mov dword [esp + 0x1c], eax
jmp 0x531989
or dword [esp + 0x10], 0x10
mov eax, dword [ebx + 4]
mov edx, dword [ebx + 8]
sub eax, dword [ebx + 0xc]
sbb edx, dword [ebx + 0x10]
mov dword [esp + 0x1c], eax
push dword [esp + 4]
push dword [esp + 4]
mov eax, dword [esi + 0x19c]
mov eax, dword [eax]
mov eax, dword [eax + 0x14e0]
xor edx, edx
push edx
push eax
mov eax, dword [ebx + 0x44]
xor edx, edx
call fcn.00405158
push edx
push eax
mov eax, dword [ebx + 0x3c]
cdq
push edx
push eax
push 0
push 0
push 0x18
lea eax, [esp + 0x2c]
push eax
push 0xffffffffffffffff
push 0xffffffffffffffff
push 0xffffffffffffffff
push 0xffffffffffffffff
push edi
mov ecx, ebp
mov edx, esi
mov eax, dword [esi + 0x10]
call fcn.004ee1e8
add esp, 0x20
pop ebp
pop edi
pop esi
pop ebx
ret