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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
cmp ebx, dword [esi + 0x90]
push edi
jne 0x1002404a
lea eax, [esi + 0x120]
lea edi, [esi + 0x124]
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x18], edi
jmp 0x1002405b
mov eax, dword [esi + 0x12c]
mov dword [ebp - 0xc], eax
add eax, 4
mov dword [ebp - 0x18], eax
mov edi, eax
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp - 0xc]
mov dword [ecx], eax
mov eax, dword [ebp + 0x14]
lea ecx, [ebp - 8]
push ecx
push dword [ebp + 0x18]
mov dword [ebp - 8], eax
push eax
push ebx
call dword [ebx + 4]
mov ecx, dword [ebp - 8]
add eax, 5
add esp, 0x10
cmp eax, 0x12
mov dword [edi], ecx
ja case.default.0x10024089
jmp dword [eax*4 + 0x100248e7]
mov eax, dword [ebx + 0x44]
sub ecx, eax
push ecx
mov ecx, dword [ebp + 0x14]
add eax, ecx
push eax
push ebx
call dword [ebx + 0x30]
add esp, 0xc
test al, al
mov byte [ebp + 0x13], al
je 0x100240de
mov eax, dword [esi + 0x3c]
test eax, eax
je 0x100240c4
lea ecx, [ebp + 0x13]
push 1
push ecx
push dword [esi + 4]
call eax
add esp, 0xc
jmp 0x10024151
cmp dword [esi + 0x50], 0
je 0x10024151
mov eax, dword [ebp - 8]
push dword [ebp + 0x14]
push ebx
call fcn.1002156f
pop ecx
pop ecx
jmp 0x10024151
mov eax, dword [ebx + 0x44]
mov edi, dword [ebp - 8]
mov ecx, dword [ebp + 0x14]
sub edi, eax
add eax, ecx
push eax
lea eax, [esi + 0x1b0]
call fcn.1002258c
test eax, eax
pop ecx
mov dword [ebp - 0x20], eax
je 0x10024771
mov edi, dword [ebp + 8]
push 0
push eax
lea esi, [edi + 0x160]
call fcn.1002173b
cmp byte [edi + 0x1e1], 0
mov esi, eax
mov eax, dword [edi + 0x1c0]
pop ecx
pop ecx
mov dword [edi + 0x1bc], eax
je 0x1002416b
cmp byte [edi + 0x1e2], 0
jne 0x1002416b
xor ecx, ecx
cmp esi, ecx
jne 0x1002417f
mov eax, dword [edi + 0x78]
cmp eax, ecx
je 0x1002415f
push ecx
push dword [ebp - 0x20]
push dword [edi + 4]
call eax
add esp, 0xc
mov esi, edi
mov eax, dword [ebp - 8]
mov edi, dword [ebp - 0x18]
mov dword [ebp + 0x14], eax
jmp 0x1002405e
cmp dword [edi + 0x50], ecx
je 0x1002414f
mov esi, edi
jmp 0x100240ce
test esi, esi
je 0x1002481c
cmp byte [esi + 0x1e], 0
je 0x10024820
xor ecx, ecx
cmp byte [esi + 0x1c], 0
jne 0x10024824
cmp dword [esi + 0x18], ecx
jne 0x10024828
cmp dword [esi + 4], ecx
je 0x10024206
cmp byte [edi + 0x130], 0
jne 0x100241ad
mov eax, dword [edi + 0x78]
cmp eax, ecx
je 0x1002415f
push 0
push dword [esi]
jmp 0x10024147
mov byte [esi + 0x1c], 1
mov eax, dword [edi + 0x12c]
push ecx
mov dword [ebp - 0x34], eax
lea eax, [ebp - 0x3c]
mov dword [edi + 0x12c], eax
mov eax, dword [esi + 4]
mov dword [ebp - 0x3c], ecx
mov dword [ebp - 0x38], ecx
mov ecx, dword [esi + 8]
add ecx, eax
push ecx
push eax
push dword [edi + 0xe4]
mov dword [ebp - 0x30], esi
push dword [edi + 0x134]
push edi
call fcn.1002401f
mov ecx, dword [ebp - 0x34]
add esp, 0x18
test eax, eax
mov byte [esi + 0x1c], 0
mov dword [edi + 0x12c], ecx
jne 0x10024774
jmp 0x1002414f
cmp dword [edi + 0x70], ecx
je 0x1002415f
mov byte [esi + 0x1c], 1
call fcn.100220df
test eax, eax
mov byte [esi + 0x1c], 0
je 0x10024771
push dword [esi + 0x14]
push dword [esi + 0xc]
push dword [esi + 0x10]
push eax
push dword [edi + 0x74]
call dword [edi + 0x70]
add esp, 0x14
test eax, eax
je 0x1002482c
mov eax, dword [edi + 0x258]
mov dword [edi + 0x254], eax
jmp 0x1002414f
xor edi, edi
cmp dword [esi + 0x34], edi
jne case.0x10024089.2
push edi
push edi
push dword [ebp + 0x14]
push ebx
push esi
call fcn.100239cc
add esp, 0x14
cmp eax, edi
jne 0x10024774
lea eax, [esi + 0x224]
mov edi, dword [eax]
test edi, edi
je 0x10024280
mov ecx, dword [edi]
mov dword [eax], ecx
jmp 0x100242a7
push 0x30
call dword [esi + 0xc]
mov edi, eax
test edi, edi
pop ecx
je 0x10024771
push 0x20
call dword [esi + 0xc]
test eax, eax
pop ecx
mov dword [edi + 0x24], eax
je 0x10024830
add eax, 0x20
mov dword [edi + 0x28], eax
xor ecx, ecx
lea eax, [edi + 0x2c]
mov dword [eax], ecx
mov dword [ebp - 0x28], eax
lea eax, [esi + 0x220]
mov edx, dword [eax]
mov dword [edi], edx
mov dword [eax], edi
mov dword [edi + 0x10], ecx
mov dword [edi + 0x14], ecx
mov eax, dword [ebx + 0x44]
mov ecx, dword [ebp + 0x14]
add eax, ecx
push eax
push ebx
mov dword [edi + 4], eax
call dword [ebx + 0x20]
mov dword [edi + 8], eax
inc dword [esi + 0x134]
mov ecx, dword [edi + 4]
mov eax, dword [edi + 8]
add eax, ecx
mov dword [ebp - 0x14], ecx
mov ecx, dword [edi + 0x24]
mov dword [ebp - 0x10], ecx
mov ecx, dword [edi + 0x28]
dec ecx
push ecx
lea ecx, [ebp - 0x10]
push ecx
push eax
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x14]
push eax
push ebx
call dword [ebx + 0x3c]
add esp, 0x1c
jmp 0x1002434a
mov eax, dword [edi + 0x28]
sub eax, ecx
add eax, eax
push eax
push ecx
mov dword [ebp - 0x24], eax
call dword [esi + 0x10]
test eax, eax
pop ecx
pop ecx
je 0x10024771
mov ecx, dword [ebp - 0x24]
add ecx, eax
mov dword [edi + 0x24], eax
mov dword [edi + 0x28], ecx
mov ecx, dword [ebp - 0x20]
add eax, ecx
mov dword [ebp - 0x10], eax
mov eax, dword [edi + 0x28]
dec eax
push eax
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 0x1c]
lea eax, [ebp - 0x14]
push eax
push ebx
call dword [ebx + 0x3c]
add esp, 0x14
mov eax, dword [ebp - 0x10]
sub eax, dword [edi + 0x24]
mov ecx, dword [edi + 0x24]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x1c]
cmp dword [ebp - 0x14], eax
jne 0x10024307
mov eax, dword [ebp - 0x20]
mov dword [edi + 0x18], eax
lea eax, [edi + 0xc]
mov dword [eax], ecx
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x10]
mov byte [eax], 0
cmp dword [esi + 0x34], 0
je 0x100243a7
push dword [ebp - 0x28]
mov edi, dword [ebp - 0x24]
push edi
push dword [ebp + 0x14]
push ebx
push esi
call fcn.100239cc
add esp, 0x14
test eax, eax
jne 0x10024774
push dword [esi + 0x23c]
push dword [edi]
push dword [esi + 4]
call dword [esi + 0x34]
add esp, 0xc
jmp 0x100243bb
cmp dword [esi + 0x50], 0
je 0x100243bb
push dword [ebp + 0x14]
mov eax, dword [ebp - 8]
push ebx
call fcn.1002156f
pop ecx
pop ecx
lea eax, [esi + 0x248]
call fcn.10021946
jmp 0x10024151
xor edi, edi
cmp dword [esi + 0x34], edi
jne case.0x10024089.4
push edi
push edi
push dword [ebp + 0x14]
push ebx
push esi
call fcn.100239cc
add esp, 0x14
cmp eax, edi
jne 0x10024774
xor ecx, ecx
cmp dword [esi + 0x34], ecx
jne 0x10024411
cmp dword [esi + 0x38], ecx
jne 0x10024411
cmp dword [esi + 0x50], ecx
je 0x100244fc
push dword [ebp + 0x14]
mov eax, dword [ebp - 8]
push ebx
call fcn.1002156f
pop ecx
pop ecx
jmp 0x100244fc
mov eax, dword [ebx + 0x44]
add eax, dword [ebp + 0x14]
mov dword [ebp - 0x1c], ecx
push eax
push ebx
mov dword [ebp - 0x20], eax
add esi, 0x248
call dword [ebx + 0x20]
push dword [ebp - 0x20]
mov edi, eax
add edi, dword [ebp - 0x20]
mov eax, esi
call fcn.1002258c
add esp, 0xc
test eax, eax
mov dword [ebp - 0x54], eax
je 0x10024771
mov edi, dword [ebp + 8]
mov eax, dword [edi + 0x254]
mov dword [edi + 0x258], eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x54]
push eax
push dword [ebp + 0x14]
push ebx
push edi
call fcn.100239cc
add esp, 0x14
test eax, eax
jne 0x10024774
mov eax, dword [edi + 0x254]
mov dword [edi + 0x258], eax
mov eax, dword [edi + 0x34]
test eax, eax
je 0x10024495
push dword [edi + 0x23c]
push dword [ebp - 0x54]
push dword [edi + 4]
call eax
add esp, 0xc
cmp dword [edi + 0x38], 0
je 0x100244b6
cmp dword [edi + 0x34], 0
je 0x100244ab
mov eax, dword [ebp - 0x18]
mov eax, dword [eax]
mov ecx, dword [ebp - 0xc]
mov dword [ecx], eax
push dword [ebp - 0x54]
push dword [edi + 4]
call dword [edi + 0x38]
pop ecx
pop ecx
mov eax, esi
call fcn.10021946
mov esi, dword [ebp - 0x1c]
test esi, esi
je 0x100244fa
mov ecx, dword [edi + 0x68]
test ecx, ecx
mov eax, esi
mov dword [ebp - 0x28], eax
je 0x100244dd
mov eax, dword [esi]
push dword [eax]
push dword [edi + 4]
call ecx
pop ecx
pop ecx
mov eax, esi
mov edx, dword [edi + 0x22c]
lea ecx, [esi + 4]
mov esi, dword [ecx]
mov dword [ecx], edx
mov dword [edi + 0x22c], eax
mov ecx, dword [eax]
mov eax, dword [eax + 8]
mov dword [ecx + 4], eax
jmp 0x100244c0
mov esi, edi
cmp dword [esi + 0x134], 0
jne 0x10024151
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp - 8]
push esi
call fcn.10023854
add esp, 0x10
jmp 0x10024774
mov eax, dword [ebp + 0xc]
cmp dword [esi + 0x134], eax
je 0x1002483a
lea eax, [esi + 0x220]
mov edi, dword [eax]
mov ecx, dword [edi]
mov dword [eax], ecx
lea eax, [esi + 0x224]
mov ecx, dword [eax]
mov dword [edi], ecx
mov ecx, dword [ebp + 0x14]
mov dword [eax], edi
mov eax, dword [ebx + 0x44]
lea eax, [ecx + eax*2]
push eax
push ebx
mov dword [ebp - 0x20], eax
call dword [ebx + 0x20]
cmp eax, dword [edi + 8]
pop ecx
pop ecx
jne 0x1002483e
push eax
push dword [ebp - 0x20]
push dword [edi + 4]
call fcn.100300dc
add esp, 0xc
test eax, eax
jne 0x1002483e
dec dword [esi + 0x134]
cmp dword [esi + 0x38], eax
je 0x100245d8
cmp byte [esi + 0xec], al
mov edx, dword [edi + 0x10]
je 0x100245cd
test edx, edx
je 0x100245cd
mov eax, dword [edi + 0x1c]
add eax, dword [edi + 0xc]
jmp 0x100245a0
mov byte [eax], cl
inc eax
inc edx
mov cl, byte [edx]
test cl, cl
jne 0x1002459c
cmp byte [esi + 0xed], cl
mov edx, dword [edi + 0x14]
je 0x100245ca
test edx, edx
je 0x100245ca
mov cl, byte [esi + 0x280]
mov byte [eax], cl
inc eax
jmp 0x100245c4
mov byte [eax], cl
inc eax
inc edx
mov cl, byte [edx]
test cl, cl
jne 0x100245c0
mov byte [eax], 0
push dword [edi + 0xc]
push dword [esi + 4]
call dword [esi + 0x38]
jmp 0x100245ea
cmp dword [esi + 0x50], 0
je 0x10024629
push dword [ebp + 0x14]
mov eax, dword [ebp - 8]
push ebx
call fcn.1002156f
pop ecx
pop ecx
jmp 0x10024629
mov ecx, dword [esi + 0x68]
test ecx, ecx
mov eax, dword [edi + 0x2c]
mov dword [ebp - 0x20], eax
je 0x10024609
mov eax, dword [eax]
push dword [eax]
push dword [esi + 4]
call ecx
mov eax, dword [ebp - 0x20]
pop ecx
pop ecx
mov ecx, dword [edi + 0x2c]
mov ecx, dword [ecx + 4]
mov dword [edi + 0x2c], ecx
mov ecx, dword [esi + 0x22c]
mov dword [eax + 4], ecx
mov dword [esi + 0x22c], eax
mov ecx, dword [eax]
mov eax, dword [eax + 8]
mov dword [ecx + 4], eax
cmp dword [edi + 0x2c], 0
jne 0x100245ee
jmp 0x100244fc
push dword [ebp + 0x14]
push ebx
call dword [ebx + 0x2c]
test eax, eax
pop ecx
pop ecx
jl 0x1002484a
cmp dword [esi + 0x3c], 0
je 0x100240c4
lea ecx, [ebp - 0x2c]
push ecx
push eax
call fcn.1002d7e9
push eax
lea eax, [ebp - 0x2c]
push eax
push dword [esi + 4]
call dword [esi + 0x3c]
add esp, 0x14
jmp 0x10024151
mov eax, dword [esi + 0x3c]
test eax, eax
je case.default.0x10024089
mov byte [ebp - 1], 0xa
lea ecx, [ebp - 1]
jmp 0x100240b4
cmp dword [esi + 0x50], 0
je 0x10024151
mov eax, ecx
jmp 0x100240d1
mov eax, dword [esi + 0x48]
test eax, eax
je 0x1002469e
push dword [esi + 4]
call eax
jmp 0x100246b0
cmp dword [esi + 0x50], 0
je 0x100246b1
push dword [ebp + 0x14]
mov eax, ecx
push ebx
call fcn.1002156f
pop ecx
pop ecx
push dword [ebp + 0x1c]
lea eax, [ebp - 8]
push dword [ebp + 0x18]
mov edi, ebx
push eax
mov eax, esi
call fcn.10021d57
add esp, 0xc
cmp dword [ebp - 8], 0
jne 0x10024151
mov dword [esi + 0x118], 0x1002289a
jmp 0x10024774
mov eax, dword [esi + 0x3c]
test eax, eax
je case.default.0x10024089
cmp byte [ebx + 0x48], 0
jne 0x1002474f
mov eax, dword [esi + 0x2c]
push dword [esi + 0x30]
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x14]
push eax
push ecx
lea eax, [ebp + 0x14]
push eax
push ebx
call dword [ebx + 0x3c]
mov eax, dword [ebp + 0x14]
mov dword [edi], eax
jmp 0x1002472f
mov ecx, dword [ebp - 0xc]
mov dword [ecx], eax
mov eax, dword [esi + 0x2c]
push dword [esi + 0x30]
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 8]
lea eax, [ebp + 0x14]
push eax
push ebx
call dword [ebx + 0x3c]
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp - 0x18]
mov dword [ecx], eax
mov eax, dword [esi + 0x2c]
mov ecx, dword [ebp - 0x14]
sub ecx, eax
push ecx
push eax
push dword [esi + 4]
call dword [esi + 0x3c]
mov eax, dword [ebp + 0x14]
add esp, 0x20
cmp eax, dword [ebp - 8]
jne 0x1002470a
jmp 0x10024151
sub ecx, dword [ebp + 0x14]
push ecx
push dword [ebp + 0x14]
jmp 0x100240b7
mov eax, dword [ebp + 0x14]
push ecx
mov ecx, ebx
mov edx, esi
call fcn.100231b8
test eax, eax
pop ecx
jne 0x10024151
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret
push dword [ebp + 0x14]
mov eax, ecx
mov ecx, ebx
mov edx, esi
call fcn.10023264
jmp 0x10024768
mov eax, dword [ebp + 0x1c]
test eax, eax
je 0x10024799
mov ecx, dword [ebp + 0x14]
mov dword [eax], ecx
xor eax, eax
jmp 0x10024774
mov eax, dword [ebp + 0x18]
mov dword [edi], eax
mov eax, dword [esi + 0x3c]
test eax, eax
je 0x100247b9
push 1
lea ecx, [ebp + 0xb]
push ecx
push dword [esi + 4]
mov byte [ebp + 0xb], 0xa
call eax
add esp, 0xc
jmp 0x100247cd
cmp dword [esi + 0x50], 0
je 0x100247cd
push dword [ebp + 0x14]
mov eax, dword [ebp + 0x18]
push ebx
call fcn.1002156f
pop ecx
pop ecx
cmp dword [ebp + 0xc], 0
jne 0x100247e4
push 3
pop eax
jmp 0x10024774
mov eax, dword [ebp + 0x1c]
test eax, eax
jne 0x10024790
cmp dword [ebp + 0xc], eax
jle 0x100247d3
mov eax, dword [esi + 0x134]
sub eax, dword [ebp + 0xc]
neg eax
sbb eax, eax
and eax, 0xd
jmp 0x10024774
mov eax, dword [ebp - 0xc]
mov dword [eax], ecx
push 4
jmp 0x100247d5
mov eax, dword [ebp + 0x1c]
test eax, eax
jne 0x10024790
push 5
jmp 0x100247d5
mov eax, dword [ebp + 0x1c]
test eax, eax
jne 0x10024790
push 6
jmp 0x100247d5
push 0xb
jmp 0x100247d5
push 0x18
jmp 0x100247d5
push 0xc
jmp 0x100247d5
push 0xf
jmp 0x100247d5
push 0x15
jmp 0x100247d5
push edi
call dword [esi + 0x14]
pop ecx
jmp 0x10024771
push 0xd
jmp 0x100247d5
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0xc]
mov dword [ecx], eax
push 7
jmp 0x100247d5
push 0xe
jmp 0x100247d5
push 0x11
jmp 0x100247d5
mov eax, dword [ebp + 0x1c]
test eax, eax
jne 0x10024790
mov eax, dword [esi + 0x3c]
test eax, eax
je 0x100248ab
cmp byte [ebx + 0x48], 0
jne 0x10024897
mov eax, dword [esi + 0x2c]
push dword [esi + 0x30]
mov dword [ebp + 8], eax
lea eax, [ebp + 8]
push eax
push dword [ebp + 0x18]
lea eax, [ebp + 0x14]
push eax
push ebx
call dword [ebx + 0x3c]
mov eax, dword [esi + 0x2c]
mov ecx, dword [ebp + 8]
sub ecx, eax
push ecx
push eax
push dword [esi + 4]
call dword [esi + 0x3c]
add esp, 0x20
jmp 0x100248bf
mov ecx, dword [ebp + 0x18]
sub ecx, dword [ebp + 0x14]
push ecx
push dword [ebp + 0x14]
push dword [esi + 4]
call eax
add esp, 0xc
jmp 0x100248bf
cmp dword [esi + 0x50], 0
je 0x100248bf
push dword [ebp + 0x14]
mov eax, dword [ebp + 0x18]
push ebx
call fcn.1002156f
pop ecx
pop ecx
mov eax, dword [ebp + 0xc]
test eax, eax
jne 0x100248d6
push 3
mov ecx, dword [ebp + 0x18]
mov edx, dword [ebp - 0xc]
pop eax
mov dword [edx], ecx
jmp 0x10024774
cmp dword [esi + 0x134], eax
je 0x10024795
push 0xd
jmp 0x100248c8