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

Disassembly:
push esi
push edi
push ebx
push ebp
sub esp, 0x7c
mov eax, dword [0x104c5878]
mov edx, dword [esp + 0x90]
xor eax, esp
mov dword [esp + 0x78], eax
test edx, edx
je 0x10054068
mov eax, dword [esp + 0x94]
test eax, eax
je 0x10054068
mov ebx, dword [esp + 0x98]
test ebx, ebx
je 0x10054068
mov edi, edx
mov ebp, ebx
neg edi
neg ebp
and edi, 3
and ebp, 3
add edi, edx
mov edx, eax
neg edx
and edx, 3
cmp dword [edi], 0x4249474e
lea edx, [eax + edx]
je 0x1005371b
mov ecx, dword [esp + 0x78]
xor ecx, esp
call fcn.103b6385
mov eax, 0xffffffef
add esp, 0x7c
pop ebp
pop ebx
pop edi
pop esi
ret 0xc
cmp dword [edx], 0x4249474e
je 0x1005373d
mov ecx, dword [esp + 0x78]
xor ecx, esp
call fcn.103b6385
mov eax, 0xffffffef
add esp, 0x7c
pop ebp
pop ebx
pop edi
pop esi
ret 0xc
cmp dword [ebp + ebx], 0x4249474e
je 0x10053761
mov ecx, dword [esp + 0x78]
xor ecx, esp
call fcn.103b6385
mov eax, 0xffffffef
add esp, 0x7c
pop ebp
pop ebx
pop edi
pop esi
ret 0xc
mov eax, dword [edi + 8]
mov ecx, dword [edx + 8]
cmp eax, ecx
mov esi, ecx
cmovge esi, eax
cmp esi, dword [ebp + ebx + 0xc]
jg 0x10053e3c
mov esi, 1
cmp eax, ecx
mov dword [esp + 0x74], esi
mov dword [esp + 0x70], 0
cmovl ecx, eax
mov dword [ebp + ebx + 8], ecx
mov eax, dword [edi + 8]
mov dword [ebp + ebx + 4], esi
cmp eax, dword [edx + 8]
jge 0x100537a2
mov esi, edx
jmp 0x100537f6
jne 0x100537f2
push eax
push dword [edx + 0x10]
push eax
push dword [edi + 0x10]
mov dword [esp + 0x10], edx
call fcn.10059bf0
mov edx, dword [esp + 0x10]
add esp, 0x10
cmp eax, 0xffffffff
jne 0x100537c5
mov esi, edx
jmp 0x100537f6
test eax, eax
jne 0x100537f2
push dword [edi + 8]
push dword [edi + 0x10]
push dword [ebp + ebx + 0x10]
call fcn.10073540
add esp, 0xc
mov ecx, dword [esp + 0x78]
xor ecx, esp
call fcn.103b6385
xor eax, eax
add esp, 0x7c
pop ebp
pop ebx
pop edi
pop esi
ret 0xc
mov esi, edi
mov edi, edx
push dword [esi + 0xc]
push 0
push dword [esi + 0x14]
call fcn.10057ad0
push dword [edi + 0xc]
push 0
push dword [edi + 0x14]
call fcn.10057ad0
push dword [esi + 8]
push dword [esi + 0x10]
push dword [esi + 0x14]
call fcn.10073540
push dword [edi + 8]
push dword [edi + 0x10]
push dword [edi + 0x14]
call fcn.10073540
mov edx, dword [ebp + ebx + 0x14]
mov eax, dword [ebp + ebx + 0x10]
mov dword [esp + 0x40], edx
mov dword [esp + 0x44], eax
push dword [ebp + ebx + 0xc]
push 0
push edx
call fcn.10057ad0
push dword [ebp + ebx + 0xc]
push 0
push dword [esp + 0x58]
call fcn.10057ad0
add esp, 0x48
mov ecx, dword [esi + 8]
mov dword [esp], ecx
test ecx, ecx
jle 0x1005389b
mov eax, dword [esi + 0x14]
xor edx, edx
mov dword [esp + 0x18], esi
mov dword [esp + 4], ebp
lea eax, [eax + ecx*4]
mov ebp, edx
mov esi, ecx
mov ebx, dword [esp]
cmp dword [eax + ebp*4 - 4], 0
jne 0x1005388c
inc edx
lea ecx, [ebp + esi - 1]
dec ebp
cmp edx, ebx
jb 0x1005387b
mov esi, dword [esp + 0x18]
mov ebp, dword [esp + 4]
mov ebx, dword [esp + 0x98]
mov edx, dword [edi + 8]
mov dword [esp + 8], edx
test edx, edx
jle 0x100538f4
mov dword [esp + 0xc], edi
xor eax, eax
mov edi, dword [edi + 0x14]
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x18], esi
lea edi, [edi + edx*4]
mov dword [esp], edi
mov dword [esp + 4], ebp
mov edi, dword [esp + 0xc]
mov ecx, eax
mov ebx, dword [esp]
mov esi, edx
mov ebp, dword [esp + 8]
cmp dword [ebx + ecx*4 - 4], 0
jne 0x100538e1
inc eax
lea edx, [ecx + esi - 1]
dec ecx
cmp eax, ebp
jb 0x100538d0
mov ecx, dword [esp + 0x1c]
mov esi, dword [esp + 0x18]
mov ebp, dword [esp + 4]
mov ebx, dword [esp + 0x98]
test ecx, ecx
jne 0x10053916
test edx, edx
jne 0x10053916
mov ecx, dword [esp + 0x78]
xor ecx, esp
call fcn.103b6385
mov eax, 0xfffffffb
add esp, 0x7c
pop ebp
pop ebx
pop edi
pop esi
ret 0xc
cmp edx, ecx
jle 0x10053934
test ecx, ecx
je 0x10053e56
mov eax, esi
mov esi, edi
mov edi, eax
mov eax, ecx
mov dword [esp + 8], ecx
mov ecx, edx
mov edx, eax
jmp 0x1005393c
test edx, edx
je 0x10053df6
cmp ecx, 2
jg 0x1005397e
jl 0x10053dae
mov dword [esp + 0xc], edi
mov edi, 2
push edi
lea eax, [esp + 0x74]
push eax
push edi
push dword [esi + 0x14]
mov dword [esp + 0x30], edx
mov edi, dword [esp + 0x1c]
mov dword [esp + 0x2c], ecx
call fcn.10059bf0
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x30]
add esp, 0x10
test eax, eax
jl 0x10053dae
xor eax, eax
mov dword [esp + 4], ebp
mov ebp, edx
mov ebx, ecx
mov eax, dword [esi + 0x14]
cmp ebp, ebx
mov dword [esp + 0x34], eax
mov dword [esp + 0x2c], ebx
mov eax, dword [eax + ebx*4 - 4]
mov dword [esp + 0x30], ebx
mov dword [esp + 0x28], ebp
mov dword [esp + 0x24], ebp
mov dword [esp + 0x4c], eax
mov dword [esp + 0x48], 0
jl 0x10053c7d
mov eax, dword [edi + 0x14]
mov edx, dword [eax + ebp*4 - 4]
xor eax, eax
mov dword [esp + 0x64], edx
or edx, eax
mov dword [esp + 0x60], eax
je 0x10053c7d
mov eax, 0xffffffff
mov edx, dword [esp + 0x64]
sub edx, eax
neg eax
add eax, dword [esp + 0x60]
or edx, eax
je 0x10053c7d
mov eax, 1
mov edx, eax
xor eax, eax
mov dword [esp + 0x54], edx
mov dword [esp + 0x6c], eax
mov dword [esp + 0x58], edx
mov dword [esp + 0x50], eax
mov dword [esp + 0x5c], eax
mov dword [esp + 0x44], eax
mov dword [esp + 0x68], eax
mov dword [esp + 0xc], edi
mov dword [esp + 0x1c], ebx
mov ebx, eax
mov dword [esp + 0x20], ebp
mov dword [esp + 0x18], esi
mov esi, dword [esp + 0x4c]
add esi, dword [esp + 0x58]
mov ebp, dword [esp + 0x48]
mov ecx, dword [esp + 0x64]
adc ebp, dword [esp + 0x50]
add ecx, dword [esp + 0x5c]
mov edx, dword [esp + 0x60]
adc edx, dword [esp + 0x44]
push edx
push ecx
push ebp
push esi
call fcn.103b72c0
mov ebp, eax
mov esi, edx
mov eax, dword [esp + 0x4c]
add eax, dword [esp + 0x68]
mov ecx, dword [esp + 0x64]
mov edi, dword [esp + 0x48]
adc edi, ebx
add ecx, dword [esp + 0x54]
mov edx, dword [esp + 0x60]
adc edx, dword [esp + 0x6c]
push edx
push ecx
push edi
push eax
call fcn.103b72c0
neg eax
neg edx
add eax, ebp
add edx, esi
or eax, edx
jne 0x10054051
push esi
push ebp
push dword [esp + 0x4c]
push dword [esp + 0x68]
call fcn.103b7280
mov edi, dword [esp + 0x58]
sub edi, eax
mov eax, dword [esp + 0x50]
mov ecx, dword [esp + 0x5c]
sbb eax, edx
mov edx, dword [esp + 0x44]
mov dword [esp + 0x38], eax
mov dword [esp + 0x58], ecx
mov dword [esp + 0x50], edx
mov dword [esp + 0x5c], edi
mov dword [esp + 0x44], eax
push esi
push ebp
push dword [esp + 0x74]
push dword [esp + 0x60]
call fcn.103b7280
mov ecx, dword [esp + 0x68]
sub ecx, eax
mov eax, ebx
mov ebx, dword [esp + 0x54]
mov dword [esp + 0x68], ebx
sbb eax, edx
mov ebx, dword [esp + 0x6c]
mov dword [esp + 0x40], ecx
mov dword [esp + 0x3c], eax
mov dword [esp + 0x54], ecx
mov dword [esp + 0x6c], eax
push esi
push ebp
push dword [esp + 0x68]
push dword [esp + 0x70]
call fcn.103b7280
mov ecx, dword [esp + 0x4c]
sub ecx, eax
mov eax, dword [esp + 0x48]
sbb eax, edx
add edi, ecx
mov edx, dword [esp + 0x38]
adc edx, eax
mov ebp, dword [esp + 0x64]
or edi, edx
mov esi, dword [esp + 0x60]
mov dword [esp + 0x4c], ebp
mov dword [esp + 0x48], esi
mov dword [esp + 0x64], ecx
mov dword [esp + 0x60], eax
je 0x10054051
add ecx, dword [esp + 0x40]
adc eax, dword [esp + 0x3c]
or ecx, eax
jne 0x10053a20
mov edi, dword [esp + 0xc]
mov eax, ebx
mov ebx, dword [esp + 0x1c]
mov ebp, dword [esp + 0x20]
mov esi, dword [esp + 0x18]
mov edx, dword [esp + 0x68]
or edx, eax
je 0x10053c7d
xor edx, edx
mov ecx, dword [esp + 0x50]
sub ecx, edx
jl 0x10053fa1
mov edx, ecx
or edx, dword [esp + 0x58]
je 0x10053fa1
xor edx, edx
sub eax, edx
jl 0x10053f5c
or eax, dword [esp + 0x68]
je 0x10053f5c
lea eax, [esp + 8]
push eax
push dword [esp + 0x5c]
push ebp
push dword [esp + 0x1c]
push dword [esp + 0x44]
call fcn.100cc430
lea eax, [esp + 0x1c]
push eax
push dword [esp + 0x80]
push ebp
push dword [esp + 0x34]
push dword [edi + 0x14]
call fcn.100cc430
push ebp
push dword [esp + 0x40]
mov eax, dword [esp + 0x40]
push eax
push eax
call fcn.100cc480
add esp, 0x38
mov dword [esp + 8], eax
xor eax, eax
mov edx, dword [esp + 0x44]
sub edx, eax
jl 0x10053eef
or edx, dword [esp + 0x5c]
je 0x10053eef
xor eax, eax
mov edx, dword [esp + 0x6c]
sub edx, eax
mov dword [esp + 0x6c], edx
jl 0x10053e9c
mov eax, edx
or eax, dword [esp + 0x54]
je 0x10053e9c
lea eax, [esp + 8]
push eax
push dword [esp + 0x58]
push ebp
push dword [esp + 0x20]
push dword [edi + 0x14]
call fcn.100cc430
push ebp
push dword [esp + 0x2c]
push dword [edi + 0x14]
call fcn.10073540
lea eax, [esp + 0x28]
push eax
push dword [esp + 0x80]
push ebp
push dword [esp + 0x40]
push dword [esi + 0x14]
call fcn.100cc430
push ebp
push dword [edi + 0x14]
mov eax, dword [esp + 0x50]
push eax
push eax
call fcn.100cc480
add esp, 0x44
mov dword [esp + 8], eax
push ebp
push dword [esp + 0x18]
push dword [edi + 0x14]
call fcn.10073540
push ebp
push dword [esp + 0x20]
push dword [esi + 0x14]
call fcn.10073540
add esp, 0x18
jmp 0x10053cf3
lea eax, [esp]
push eax
xor eax, eax
push eax
push eax
push ebp
push dword [edi + 0x14]
push ebx
push dword [esp + 0x4c]
call fcn.10073650
mov eax, dword [esp + 0x20]
mov edx, dword [esp + 0xb4]
push dword [eax + edx + 0xc]
push 0
push dword [esp + 0x34]
call fcn.10057ad0
push dword [esp + 0x28]
push dword [esi + 0x14]
push dword [esp + 0x40]
call fcn.10073540
push dword [esi + 0xc]
push 0
push dword [esi + 0x14]
call fcn.10057ad0
push ebp
push dword [edi + 0x14]
push dword [esi + 0x14]
call fcn.10073540
push dword [edi + 0xc]
push 0
push dword [edi + 0x14]
call fcn.10057ad0
push ebp
push dword [esp + 0x6c]
push dword [edi + 0x14]
call fcn.10073540
add esp, 0x64
mov eax, dword [esi + 0x14]
xor ecx, ecx
mov dword [esp + 0x20], ebp
xor edx, edx
mov dword [esp + 0x18], esi
mov ebp, dword [esp + 0x30]
lea eax, [eax + ebx*4]
mov esi, dword [esp + 0x2c]
cmp dword [eax + edx*4 - 4], 0
jne 0x10053d1e
inc ecx
lea ebx, [edx + ebp - 1]
dec edx
cmp ecx, esi
jb 0x10053d0d
mov ebp, dword [esp + 0x20]
mov esi, dword [esp + 0x18]
test ebp, ebp
jle 0x10053d5d
mov eax, dword [edi + 0x14]
xor ecx, ecx
mov dword [esp + 0x1c], ebx
xor edx, edx
mov dword [esp + 0x18], esi
mov ebx, dword [esp + 0x24]
lea eax, [eax + ebp*4]
mov esi, dword [esp + 0x28]
cmp dword [eax + edx*4 - 4], 0
jne 0x10053d55
inc ecx
lea ebp, [edx + ebx - 1]
dec edx
cmp ecx, esi
jb 0x10053d44
mov ebx, dword [esp + 0x1c]
mov esi, dword [esp + 0x18]
cmp ebp, ebx
jle 0x10053d71
mov eax, esi
mov esi, edi
mov edi, eax
mov eax, ebx
mov dword [esp + 8], ebx
mov ebx, ebp
mov ebp, eax
test ebp, ebp
je 0x10053ffe
cmp ebx, 2
jg 0x10053988
jl 0x10053da3
mov edx, 2
lea eax, [esp + 0x70]
push edx
push eax
push edx
push dword [esi + 0x14]
call fcn.10059bf0
add esp, 0x10
test eax, eax
jge 0x10053988
mov ebp, dword [esp + 4]
mov ebx, dword [esp + 0x98]
mov edi, dword [edi + 0x14]
mov eax, dword [esi + 0x14]
push dword [edi]
push dword [eax]
call fcn.100cba30
mov esi, eax
push dword [ebp + ebx + 0xc]
push 0
push dword [ebp + ebx + 0x10]
call fcn.10057ad0
add esp, 0x14
mov eax, dword [ebp + ebx + 0x10]
mov dword [eax], esi
mov dword [ebp + ebx + 8], 1
mov ecx, dword [esp + 0x78]
xor ecx, esp
call fcn.103b6385
xor eax, eax
add esp, 0x7c
pop ebp
pop ebx
pop edi
pop esi
ret 0xc
push dword [ebp + ebx + 0xc]
push 0
push dword [ebp + ebx + 0x10]
mov dword [esp + 0x28], ecx
call fcn.10057ad0
mov ecx, dword [esp + 0x28]
push ecx
push dword [esi + 0x14]
push dword [ebp + ebx + 0x10]
call fcn.10073540
mov ecx, dword [esp + 0x34]
add esp, 0x18
mov dword [ebp + ebx + 8], ecx
mov ecx, dword [esp + 0x78]
xor ecx, esp
call fcn.103b6385
xor eax, eax
add esp, 0x7c
pop ebp
pop ebx
pop edi
pop esi
ret 0xc
mov ecx, dword [esp + 0x78]
xor ecx, esp
call fcn.103b6385
mov eax, 0xfffffff5
add esp, 0x7c
pop ebp
pop ebx
pop edi
pop esi
ret 0xc
push dword [ebp + ebx + 0xc]
push 0
push dword [ebp + ebx + 0x10]
mov dword [esp + 0x2c], edx
call fcn.10057ad0
mov edx, dword [esp + 0x2c]
push edx
push dword [edi + 0x14]
push dword [ebp + ebx + 0x10]
call fcn.10073540
mov edx, dword [esp + 0x38]
add esp, 0x18
mov dword [ebp + ebx + 8], edx
mov ecx, dword [esp + 0x78]
xor ecx, esp
call fcn.103b6385
xor eax, eax
add esp, 0x7c
pop ebp
pop ebx
pop edi
pop esi
ret 0xc
mov edx, dword [esp + 0x54]
lea eax, [esp + 8]
push eax
neg edx
push edx
push ebp
push dword [esp + 0x20]
push dword [edi + 0x14]
call fcn.100cc430
push ebp
push dword [esp + 0x2c]
push dword [edi + 0x14]
call fcn.10073540
lea eax, [esp + 0x28]
push eax
push dword [esp + 0x80]
push ebp
push dword [esp + 0x40]
push dword [esi + 0x14]
call fcn.100cc430
push ebp
push dword [edi + 0x14]
mov eax, dword [esp + 0x50]
push eax
push eax
call fcn.100cc4d0
jmp 0x10053c57
xor eax, eax
mov edx, dword [esp + 0x6c]
sub edx, eax
jl 0x10053f49
mov edx, dword [esp + 0x5c]
lea eax, [esp + 8]
push eax
neg edx
push edx
push ebp
push dword [esp + 0x20]
push dword [esi + 0x14]
call fcn.100cc430
push ebp
push dword [esp + 0x2c]
push dword [esi + 0x14]
call fcn.10073540
lea eax, [esp + 0x28]
push eax
push dword [esp + 0x78]
push ebp
push dword [esp + 0x40]
push dword [edi + 0x14]
call fcn.100cc430
push ebp
push dword [esi + 0x14]
mov eax, dword [esp + 0x50]
push eax
push eax
call fcn.100cc4d0
jmp 0x10053c57
xor eax, eax
mov edx, dword [esp + 0x44]
sub edx, eax
jl 0x10053c0c
jmp 0x10053e9c
lea eax, [esp + 8]
push eax
push dword [esp + 0x5c]
push ebp
push dword [esp + 0x1c]
push dword [esp + 0x44]
call fcn.100cc430
mov edx, dword [esp + 0x7c]
lea eax, [esp + 0x1c]
push eax
neg edx
push edx
push ebp
push dword [esp + 0x34]
push dword [edi + 0x14]
call fcn.100cc430
push ebp
push dword [esp + 0x40]
mov eax, dword [esp + 0x40]
push eax
push eax
call fcn.100cc4d0
jmp 0x10053bcf
xor edx, edx
sub eax, edx
jl 0x10053feb
lea eax, [esp + 8]
push eax
push dword [esp + 0x6c]
push ebp
push dword [esp + 0x1c]
push dword [edi + 0x14]
call fcn.100cc430
mov edx, dword [esp + 0x6c]
lea eax, [esp + 0x1c]
push eax
neg edx
push edx
push ebp
push dword [esp + 0x34]
push dword [esi + 0x14]
call fcn.100cc430
push ebp
push dword [esp + 0x40]
mov eax, dword [esp + 0x40]
push eax
push eax
call fcn.100cc4d0
jmp 0x10053bcf
xor eax, eax
mov edx, dword [esp + 0x50]
sub edx, eax
jl 0x10053b8f
jmp 0x10053f5c
mov ebp, dword [esp + 4]
mov ecx, ebx
mov ebx, dword [esp + 0x98]
push dword [ebp + ebx + 0xc]
push 0
push dword [ebp + ebx + 0x10]
mov dword [esp + 0x28], ecx
call fcn.10057ad0
mov ecx, dword [esp + 0x28]
push ecx
push dword [esi + 0x14]
push dword [ebp + ebx + 0x10]
call fcn.10073540
mov ecx, dword [esp + 0x34]
add esp, 0x18
mov dword [ebp + ebx + 8], ecx
mov ecx, dword [esp + 0x78]
xor ecx, esp
call fcn.103b6385
xor eax, eax
add esp, 0x7c
pop ebp
pop ebx
pop edi
pop esi
ret 0xc
mov edi, dword [esp + 0xc]
mov eax, ebx
mov ebx, dword [esp + 0x1c]
mov ebp, dword [esp + 0x20]
mov esi, dword [esp + 0x18]
jmp 0x10053b55
mov ecx, dword [esp + 0x78]
xor ecx, esp
call fcn.103b6385
mov eax, 0xfffffff8
add esp, 0x7c
pop ebp
pop ebx
pop edi
pop esi
ret 0xc