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

Disassembly:
sub esp, 0x50
push ebx
push ebp
push esi
mov esi, dword [esp + 0x60]
push edi
xor ebp, ebp
push esi
mov dword [esp + 0x20], ebp
mov dword [esp + 0x14], ebp
call fcn.10033f80
mov ebx, eax
add esp, 4
cmp ebx, ebp
jne 0x10033cc5
mov eax, dword [esi + 0x44]
cmp eax, ebp
mov dword [esp + 0x64], eax
jne 0x10033a94
lea eax, [esp + 0x40]
push 0x377f0682
push eax
call fcn.10031290
lea ecx, [esp + 0x4c]
push 0x2de218
push ecx
call fcn.10031290
mov edi, dword [esp + 0x78]
lea edx, [esp + 0x58]
push edi
push edx
call fcn.10031290
mov ebx, dword [esi + 0x68]
lea eax, [esp + 0x64]
push ebx
push eax
call fcn.10031290
add esp, 0x20
cmp ebx, ebp
jne 0x100339a7
lea ecx, [esi + 0x54]
push ecx
push 8
call fcn.1002af10
add esp, 8
mov edx, dword [esi + 0x54]
mov eax, dword [esi + 0x58]
lea ecx, [esp + 0x20]
mov dword [esp + 0x50], edx
push ecx
push ebp
lea edx, [esp + 0x48]
push 0x18
push edx
push 1
mov dword [esp + 0x68], eax
call fcn.10033cd0
mov ebx, dword [esp + 0x34]
lea eax, [esp + 0x6c]
push ebx
push eax
call fcn.10031290
mov ebp, dword [esp + 0x40]
lea ecx, [esp + 0x78]
push ebp
push ecx
call fcn.10031290
mov eax, dword [esi + 8]
push 0
push 0
lea edx, [esp + 0x6c]
push 0x20
push edx
push eax
mov dword [esi + 0x24], edi
mov byte [esi + 0x41], 0
mov dword [esi + 0x4c], ebx
mov dword [esi + 0x50], ebp
mov byte [esi + 0x2f], 1
call fcn.1002fcc0
mov ebx, eax
add esp, 0x38
test ebx, ebx
jne 0x10033cc5
mov al, byte [esi + 0x30]
test al, al
je 0x10033a42
mov eax, dword [esp + 0x78]
test eax, eax
je 0x10033a42
mov ecx, dword [esi + 8]
and eax, 0x13
push eax
push ecx
call fcn.10030b90
mov ebx, eax
add esp, 8
test ebx, ebx
jne 0x10033cc5
xor ebp, ebp
mov eax, dword [esp + 0x78]
mov edx, dword [esi + 8]
mov ecx, dword [esp + 0x64]
mov dword [esp + 0x38], eax
lea eax, [edi + 0x18]
mov dword [esp + 0x2c], edx
cdq
push edx
push eax
push ebp
push ecx
mov dword [esp + 0x38], esi
mov dword [esp + 0x40], ebp
mov dword [esp + 0x44], ebp
mov dword [esp + 0x4c], edi
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], edx
call fcn.10025c70
mov ebp, eax
mov eax, dword [esp + 0x6c]
mov edi, edx
add ebp, 0x20
adc edi, 0
mov dword [esp + 0x14], eax
test eax, eax
je 0x10033af8
jmp 0x10033a9e
mov edi, dword [esp + 0x68]
jmp 0x10033a44
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x64]
mov ecx, dword [esp + 0x74]
inc edx
test ecx, ecx
mov dword [esp + 0x64], edx
je 0x10033abc
mov ecx, dword [eax + 0xc]
test ecx, ecx
jne 0x10033abc
mov ecx, dword [esp + 0x70]
jmp 0x10033abe
xor ecx, ecx
push edi
push ebp
push ecx
lea edx, [esp + 0x34]
push eax
push edx
call fcn.10034930
mov ebx, eax
add esp, 0x14
test ebx, ebx
jne 0x10033cc5
mov eax, dword [esp + 0x68]
mov ecx, dword [esp + 0x14]
add eax, 0x18
mov dword [esp + 0x1c], ecx
cdq
add ebp, eax
mov eax, dword [ecx + 0xc]
adc edi, edx
mov dword [esp + 0x14], eax
test eax, eax
jne 0x10033a9a
mov eax, dword [esp + 0x74]
test eax, eax
je 0x10033c2b
mov eax, dword [esp + 0x78]
test al, 0x20
je 0x10033bc9
mov cl, byte [esi + 0x31]
test cl, cl
je 0x10033bb6
mov ecx, dword [esi + 8]
push ecx
call fcn.10032e20
cdq
add esp, 4
mov dword [esp + 0x14], eax
add eax, ebp
mov ecx, edx
adc ecx, edi
mov dword [esp + 0x18], edx
sub eax, 1
push edx
mov edx, dword [esp + 0x18]
sbb ecx, 0
push edx
push ecx
push eax
call fcn.1007e390
mov ecx, dword [esp + 0x18]
push ecx
mov ecx, dword [esp + 0x18]
push ecx
push edx
push eax
call fcn.10025c70
cmp edi, edx
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], edx
jg 0x10033bc9
jl 0x10033b6c
cmp ebp, eax
jae 0x10033bc9
mov edx, dword [esp + 0x70]
mov eax, dword [esp + 0x1c]
push edi
push ebp
push edx
lea ecx, [esp + 0x34]
push eax
push ecx
call fcn.10034930
mov ebx, eax
add esp, 0x14
test ebx, ebx
jne 0x10033cc5
mov edx, dword [esp + 0x68]
mov ecx, dword [esp + 0x10]
lea eax, [edx + 0x18]
cdq
add ebp, eax
mov eax, dword [esp + 0x34]
adc edi, edx
inc ecx
cmp edi, eax
mov dword [esp + 0x10], ecx
jl 0x10033b6c
jg 0x10033bc9
cmp ebp, dword [esp + 0x30]
jb 0x10033b6c
jmp 0x10033bc9
and eax, 0x13
push eax
mov eax, dword [esp + 0x30]
push eax
call fcn.10030b90
add esp, 8
mov ebx, eax
mov al, byte [esi + 0x2f]
test al, al
je 0x10033c2b
mov edi, dword [esi + 0x14]
mov ebp, dword [esi + 0x10]
test edi, edi
jl 0x10033c2b
jg 0x10033be0
test ebp, ebp
jb 0x10033c2b
mov ecx, dword [esp + 0x64]
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x24]
add ecx, edx
mov edx, dword [esp + 0x20]
push eax
push edx
push 0
push ecx
mov dword [esp + 0x24], ebp
mov dword [esp + 0x28], edi
call fcn.10025c70
add eax, 0x20
adc edx, 0
cmp edx, edi
jl 0x10033c14
jg 0x10033c1c
cmp eax, ebp
ja 0x10033c1c
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x14]
push edx
push eax
push esi
call fcn.10033f10
add esp, 0xc
mov byte [esi + 0x2f], 0
mov ebp, dword [esp + 0x6c]
mov edi, dword [esi + 0x44]
test ebp, ebp
je 0x10033c56
test ebx, ebx
jne 0x10033cc5
mov eax, dword [ebp + 0x14]
inc edi
push eax
push edi
push esi
call fcn.10033e20
mov ebp, dword [ebp + 0xc]
add esp, 0xc
test ebp, ebp
mov ebx, eax
jne 0x10033c36
test ebx, ebx
jne 0x10033cc5
mov eax, dword [esp + 0x10]
test eax, eax
jle 0x10033c88
mov ecx, dword [esp + 0x1c]
inc edi
dec eax
mov edx, dword [ecx + 0x14]
mov dword [esp + 0x10], eax
push edx
push edi
push esi
call fcn.10033e20
mov ebx, eax
add esp, 0xc
test ebx, ebx
je 0x10033c5a
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x50
ret
test ebx, ebx
jne 0x10033cc5
mov eax, dword [esp + 0x68]
mov dword [esi + 0x44], edi
mov ecx, eax
and eax, 0xff00
sar ecx, 0x10
or ecx, eax
mov eax, dword [esp + 0x74]
test eax, eax
mov word [esi + 0x42], cx
je 0x10033cc5
mov edx, dword [esi + 0x3c]
push esi
inc edx
mov dword [esi + 0x3c], edx
mov edx, dword [esp + 0x74]
mov dword [esi + 0x48], edx
call fcn.10033d90
add esp, 4
mov dword [esi + 0xc], edi
pop edi
pop esi
mov eax, ebx
pop ebp
pop ebx
add esp, 0x50
ret