Function at 0x100543e0
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 0x10054da8
mov eax, dword [esp + 0x94]
test eax, eax
je 0x10054da8
mov ebx, dword [esp + 0x98]
test ebx, ebx
je 0x10054da8
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 0x1005445b
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 0x1005447d
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 0x100544a1
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 0x10054b7c
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 0x100544e2
mov esi, edx
jmp 0x10054536
jne 0x10054532
push eax
push dword [edx + 0x10]
push eax
push dword [edi + 0x10]
mov dword [esp + 0x10], edx
call fcn.100a5d10
mov edx, dword [esp + 0x10]
add esp, 0x10
cmp eax, 0xffffffff
jne 0x10054505
mov esi, edx
jmp 0x10054536
test eax, eax
jne 0x10054532
push dword [edi + 8]
push dword [edi + 0x10]
push dword [ebp + ebx + 0x10]
call fcn.1008c900
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.1008c850
push dword [edi + 0xc]
push 0
push dword [edi + 0x14]
call fcn.1008c850
push dword [esi + 8]
push dword [esi + 0x10]
push dword [esi + 0x14]
call fcn.1008c900
push dword [edi + 8]
push dword [edi + 0x10]
push dword [edi + 0x14]
call fcn.1008c900
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.1008c850
push dword [ebp + ebx + 0xc]
push 0
push dword [esp + 0x58]
call fcn.1008c850
add esp, 0x48
mov ecx, dword [esi + 8]
mov dword [esp], ecx
test ecx, ecx
jle 0x100545db
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 0x100545cc
inc edx
lea ecx, [ebp + esi - 1]
dec ebp
cmp edx, ebx
jb 0x100545bb
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 0x10054634
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 0x10054621
inc eax
lea edx, [ecx + esi - 1]
dec ecx
cmp eax, ebp
jb 0x10054610
mov ecx, dword [esp + 0x1c]
mov esi, dword [esp + 0x18]
mov ebp, dword [esp + 4]
mov ebx, dword [esp + 0x98]
test ecx, ecx
jne 0x10054656
test edx, edx
jne 0x10054656
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 0x10054674
test ecx, ecx
je 0x10054b96
mov eax, esi
mov esi, edi
mov edi, eax
mov eax, ecx
mov dword [esp + 8], ecx
mov ecx, edx
mov edx, eax
jmp 0x1005467c
test edx, edx
je 0x10054b36
cmp ecx, 2
jg 0x100546be
jl 0x10054aee
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.100a5d10
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x30]
add esp, 0x10
test eax, eax
jl 0x10054aee
xor eax, eax
mov dword [esp + 4], ebp
mov ebp, edx
mov ebx, ecx
mov eax, dword [esi + 0x14]
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
cmp ebp, ebx
jl 0x100549bd
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 0x100549bd
mov eax, 0xffffffff
mov edx, dword [esp + 0x64]
sub edx, eax
neg eax
add eax, dword [esp + 0x60]
or edx, eax
je 0x100549bd
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 0x10054d91
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 0x10054d91
add ecx, dword [esp + 0x40]
adc eax, dword [esp + 0x3c]
or ecx, eax
jne 0x10054760
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 0x100549bd
xor edx, edx
mov ecx, dword [esp + 0x50]
sub ecx, edx
jl 0x10054ce1
mov edx, ecx
or edx, dword [esp + 0x58]
je 0x10054ce1
xor edx, edx
sub eax, edx
jl 0x10054c9c
or eax, dword [esp + 0x68]
je 0x10054c9c
lea eax, [esp + 8]
push eax
push dword [esp + 0x5c]
push ebp
push dword [esp + 0x1c]
push dword [esp + 0x44]
call fcn.100cc930
lea eax, [esp + 0x1c]
push eax
push dword [esp + 0x80]
push ebp
push dword [esp + 0x34]
push dword [edi + 0x14]
call fcn.100cc930
push ebp
push dword [esp + 0x40]
mov eax, dword [esp + 0x40]
push eax
push eax
call fcn.100cc980
add esp, 0x38
mov dword [esp + 8], eax
xor eax, eax
mov edx, dword [esp + 0x44]
sub edx, eax
jl 0x10054c2f
or edx, dword [esp + 0x5c]
je 0x10054c2f
xor eax, eax
mov edx, dword [esp + 0x6c]
sub edx, eax
mov dword [esp + 0x6c], edx
jl 0x10054bdc
mov eax, edx
or eax, dword [esp + 0x54]
je 0x10054bdc
lea eax, [esp + 8]
push eax
push dword [esp + 0x58]
push ebp
push dword [esp + 0x20]
push dword [edi + 0x14]
call fcn.100cc930
push ebp
push dword [esp + 0x2c]
push dword [edi + 0x14]
call fcn.1008c900
lea eax, [esp + 0x28]
push eax
push dword [esp + 0x80]
push ebp
push dword [esp + 0x40]
push dword [esi + 0x14]
call fcn.100cc930
push ebp
push dword [edi + 0x14]
mov eax, dword [esp + 0x50]
push eax
push eax
call fcn.100cc980
add esp, 0x44
mov dword [esp + 8], eax
push ebp
push dword [esp + 0x18]
push dword [edi + 0x14]
call fcn.1008c900
push ebp
push dword [esp + 0x20]
push dword [esi + 0x14]
call fcn.1008c900
add esp, 0x18
jmp 0x10054a33
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.1008ca20
mov eax, dword [esp + 0x20]
mov edx, dword [esp + 0xb4]
push dword [eax + edx + 0xc]
push 0
push dword [esp + 0x34]
call fcn.1008c850
push dword [esp + 0x28]
push dword [esi + 0x14]
push dword [esp + 0x40]
call fcn.1008c900
push dword [esi + 0xc]
push 0
push dword [esi + 0x14]
call fcn.1008c850
push ebp
push dword [edi + 0x14]
push dword [esi + 0x14]
call fcn.1008c900
push dword [edi + 0xc]
push 0
push dword [edi + 0x14]
call fcn.1008c850
push ebp
push dword [esp + 0x6c]
push dword [edi + 0x14]
call fcn.1008c900
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 0x10054a5e
inc ecx
lea ebx, [edx + ebp - 1]
dec edx
cmp ecx, esi
jb 0x10054a4d
mov ebp, dword [esp + 0x20]
mov esi, dword [esp + 0x18]
test ebp, ebp
jle 0x10054a9d
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 0x10054a95
inc ecx
lea ebp, [edx + ebx - 1]
dec edx
cmp ecx, esi
jb 0x10054a84
mov ebx, dword [esp + 0x1c]
mov esi, dword [esp + 0x18]
cmp ebp, ebx
jle 0x10054ab1
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 0x10054d3e
cmp ebx, 2
jg 0x100546c8
jl 0x10054ae3
mov edx, 2
lea eax, [esp + 0x70]
push edx
push eax
push edx
push dword [esi + 0x14]
call fcn.100a5d10
add esp, 0x10
test eax, eax
jge 0x100546c8
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.1008c850
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.1008c850
mov ecx, dword [esp + 0x28]
push ecx
push dword [esi + 0x14]
push dword [ebp + ebx + 0x10]
call fcn.1008c900
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.1008c850
mov edx, dword [esp + 0x2c]
push edx
push dword [edi + 0x14]
push dword [ebp + ebx + 0x10]
call fcn.1008c900
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.100cc930
push ebp
push dword [esp + 0x2c]
push dword [edi + 0x14]
call fcn.1008c900
lea eax, [esp + 0x28]
push eax
push dword [esp + 0x80]
push ebp
push dword [esp + 0x40]
push dword [esi + 0x14]
call fcn.100cc930
push ebp
push dword [edi + 0x14]
mov eax, dword [esp + 0x50]
push eax
push eax
call fcn.100cc9d0
jmp 0x10054997
xor eax, eax
mov edx, dword [esp + 0x6c]
sub edx, eax
jl 0x10054c89
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.100cc930
push ebp
push dword [esp + 0x2c]
push dword [esi + 0x14]
call fcn.1008c900
lea eax, [esp + 0x28]
push eax
push dword [esp + 0x78]
push ebp
push dword [esp + 0x40]
push dword [edi + 0x14]
call fcn.100cc930
push ebp
push dword [esi + 0x14]
mov eax, dword [esp + 0x50]
push eax
push eax
call fcn.100cc9d0
jmp 0x10054997
xor eax, eax
mov edx, dword [esp + 0x44]
sub edx, eax
jl 0x1005494c
jmp 0x10054bdc
lea eax, [esp + 8]
push eax
push dword [esp + 0x5c]
push ebp
push dword [esp + 0x1c]
push dword [esp + 0x44]
call fcn.100cc930
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.100cc930
push ebp
push dword [esp + 0x40]
mov eax, dword [esp + 0x40]
push eax
push eax
call fcn.100cc9d0
jmp 0x1005490f
xor edx, edx
sub eax, edx
jl 0x10054d2b
lea eax, [esp + 8]
push eax
push dword [esp + 0x6c]
push ebp
push dword [esp + 0x1c]
push dword [edi + 0x14]
call fcn.100cc930
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.100cc930
push ebp
push dword [esp + 0x40]
mov eax, dword [esp + 0x40]
push eax
push eax
call fcn.100cc9d0
jmp 0x1005490f
xor eax, eax
mov edx, dword [esp + 0x50]
sub edx, eax
jl 0x100548cf
jmp 0x10054c9c
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.1008c850
mov ecx, dword [esp + 0x28]
push ecx
push dword [esi + 0x14]
push dword [ebp + ebx + 0x10]
call fcn.1008c900
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 0x10054895
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