Function at 0x10051aa0
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 0x10052468
mov eax, dword [esp + 0x94]
test eax, eax
je 0x10052468
mov ebx, dword [esp + 0x98]
test ebx, ebx
je 0x10052468
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 0x10051b1b
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 0x10051b3d
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 0x10051b61
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 0x1005223c
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 0x10051ba2
mov esi, edx
jmp 0x10051bf6
jne 0x10051bf2
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 0x10051bc5
mov esi, edx
jmp 0x10051bf6
test eax, eax
jne 0x10051bf2
push dword [edi + 8]
push dword [edi + 0x10]
push dword [ebp + ebx + 0x10]
call fcn.10057b70
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.10057b70
push dword [edi + 8]
push dword [edi + 0x10]
push dword [edi + 0x14]
call fcn.10057b70
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]
test ecx, ecx
mov dword [esp], ecx
jle 0x10051c9b
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 0x10051c8c
inc edx
lea ecx, [ebp + esi - 1]
dec ebp
cmp edx, ebx
jb 0x10051c7b
mov esi, dword [esp + 0x18]
mov ebp, dword [esp + 4]
mov ebx, dword [esp + 0x98]
mov edx, dword [edi + 8]
test edx, edx
mov dword [esp + 8], edx
jle 0x10051cf4
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 0x10051ce1
inc eax
lea edx, [ecx + esi - 1]
dec ecx
cmp eax, ebp
jb 0x10051cd0
mov ecx, dword [esp + 0x1c]
mov esi, dword [esp + 0x18]
mov ebp, dword [esp + 4]
mov ebx, dword [esp + 0x98]
test ecx, ecx
jne 0x10051d16
test edx, edx
jne 0x10051d16
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 0x10051d34
test ecx, ecx
je 0x10052256
mov eax, esi
mov esi, edi
mov edi, eax
mov eax, ecx
mov dword [esp + 8], ecx
mov ecx, edx
mov edx, eax
jmp 0x10051d3c
test edx, edx
je 0x100521f6
cmp ecx, 2
jg 0x10051d7e
jl 0x100521ae
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 0x100521ae
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 0x1005207d
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 0x1005207d
mov eax, 0xffffffff
mov edx, dword [esp + 0x64]
sub edx, eax
neg eax
add eax, dword [esp + 0x60]
or edx, eax
je 0x1005207d
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 0x10052451
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 0x10052451
add ecx, dword [esp + 0x40]
adc eax, dword [esp + 0x3c]
or ecx, eax
jne 0x10051e20
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 0x1005207d
xor edx, edx
mov ecx, dword [esp + 0x50]
sub ecx, edx
jl 0x100523a1
mov edx, ecx
or edx, dword [esp + 0x58]
je 0x100523a1
xor edx, edx
sub eax, edx
jl 0x1005235c
or eax, dword [esp + 0x68]
je 0x1005235c
lea eax, [esp + 8]
push eax
push dword [esp + 0x5c]
push ebp
push dword [esp + 0x1c]
push dword [esp + 0x44]
call fcn.100cb990
lea eax, [esp + 0x1c]
push eax
push dword [esp + 0x80]
push ebp
push dword [esp + 0x34]
push dword [edi + 0x14]
call fcn.100cb990
push ebp
push dword [esp + 0x40]
mov eax, dword [esp + 0x40]
push eax
push eax
call fcn.100cb9e0
add esp, 0x38
mov dword [esp + 8], eax
xor eax, eax
mov edx, dword [esp + 0x44]
sub edx, eax
jl 0x100522ef
or edx, dword [esp + 0x5c]
je 0x100522ef
xor eax, eax
mov edx, dword [esp + 0x6c]
sub edx, eax
mov dword [esp + 0x6c], edx
jl 0x1005229c
mov eax, edx
or eax, dword [esp + 0x54]
je 0x1005229c
lea eax, [esp + 8]
push eax
push dword [esp + 0x58]
push ebp
push dword [esp + 0x20]
push dword [edi + 0x14]
call fcn.100cb990
push ebp
push dword [esp + 0x2c]
push dword [edi + 0x14]
call fcn.10057b70
lea eax, [esp + 0x28]
push eax
push dword [esp + 0x80]
push ebp
push dword [esp + 0x40]
push dword [esi + 0x14]
call fcn.100cb990
push ebp
push dword [edi + 0x14]
mov eax, dword [esp + 0x50]
push eax
push eax
call fcn.100cb9e0
add esp, 0x44
mov dword [esp + 8], eax
push ebp
push dword [esp + 0x18]
push dword [edi + 0x14]
call fcn.10057b70
push ebp
push dword [esp + 0x20]
push dword [esi + 0x14]
call fcn.10057b70
add esp, 0x18
jmp 0x100520f3
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.10057c80
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.10057b70
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.10057b70
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.10057b70
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 0x1005211e
inc ecx
lea ebx, [edx + ebp - 1]
dec edx
cmp ecx, esi
jb 0x1005210d
mov ebp, dword [esp + 0x20]
mov esi, dword [esp + 0x18]
test ebp, ebp
jle 0x1005215d
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 0x10052155
inc ecx
lea ebp, [edx + ebx - 1]
dec edx
cmp ecx, esi
jb 0x10052144
mov ebx, dword [esp + 0x1c]
mov esi, dword [esp + 0x18]
cmp ebp, ebx
jle 0x10052171
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 0x100523fe
cmp ebx, 2
jg 0x10051d88
jl 0x100521a3
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 0x10051d88
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.10057b70
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.10057b70
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.100cb990
push ebp
push dword [esp + 0x2c]
push dword [edi + 0x14]
call fcn.10057b70
lea eax, [esp + 0x28]
push eax
push dword [esp + 0x80]
push ebp
push dword [esp + 0x40]
push dword [esi + 0x14]
call fcn.100cb990
push ebp
push dword [edi + 0x14]
mov eax, dword [esp + 0x50]
push eax
push eax
call fcn.100cba60
jmp 0x10052057
xor eax, eax
mov edx, dword [esp + 0x6c]
sub edx, eax
jl 0x10052349
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.100cb990
push ebp
push dword [esp + 0x2c]
push dword [esi + 0x14]
call fcn.10057b70
lea eax, [esp + 0x28]
push eax
push dword [esp + 0x78]
push ebp
push dword [esp + 0x40]
push dword [edi + 0x14]
call fcn.100cb990
push ebp
push dword [esi + 0x14]
mov eax, dword [esp + 0x50]
push eax
push eax
call fcn.100cba60
jmp 0x10052057
xor eax, eax
mov edx, dword [esp + 0x44]
sub edx, eax
jl 0x1005200c
jmp 0x1005229c
lea eax, [esp + 8]
push eax
push dword [esp + 0x5c]
push ebp
push dword [esp + 0x1c]
push dword [esp + 0x44]
call fcn.100cb990
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.100cb990
push ebp
push dword [esp + 0x40]
mov eax, dword [esp + 0x40]
push eax
push eax
call fcn.100cba60
jmp 0x10051fcf
xor edx, edx
sub eax, edx
jl 0x100523eb
lea eax, [esp + 8]
push eax
push dword [esp + 0x6c]
push ebp
push dword [esp + 0x1c]
push dword [edi + 0x14]
call fcn.100cb990
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.100cb990
push ebp
push dword [esp + 0x40]
mov eax, dword [esp + 0x40]
push eax
push eax
call fcn.100cba60
jmp 0x10051fcf
xor eax, eax
mov edx, dword [esp + 0x50]
sub edx, eax
jl 0x10051f8f
jmp 0x1005235c
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.10057b70
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 0x10051f55
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