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

Disassembly:
sub esp, 0x50
mov eax, dword [0x6400104]
xor eax, esp
mov dword [esp + 0x4c], eax
mov ecx, dword [esp + 0x70]
mov eax, dword [esp + 0x58]
mov dword [esp + 0x14], eax
mov dword [esp], ecx
push ebx
mov ebx, dword [esp + 0x70]
mov dword [esp + 8], ebx
push ebp
mov ebp, dword [esp + 0x6c]
push esi
push edi
test ecx, ecx
je 0x247e646
mov al, byte [ebx]
cmp al, 0x2b
je 0x247e641
cmp al, 0x2d
jne 0x247e646
xor edi, edi
inc edi
jmp 0x247e648
xor edi, edi
mov eax, dword [ebp + 0x14]
mov edx, 0x3000
and eax, edx
cmp eax, edx
je 0x247e65d
mov edx, 0x4405500
jmp 0x247e67f
lea eax, [edi + 2]
mov edx, 0x4405504
cmp eax, ecx
ja 0x247e67f
cmp byte [ebx + edi], 0x30
jne 0x247e67f
mov cl, byte [ebx + edi + 1]
cmp cl, 0x78
je 0x247e67d
cmp cl, 0x58
jne 0x247e67f
mov edi, eax
push edx
push ebx
call fcn.025d55b0
mov dword [esp + 0x28], eax
push 0x2e
pop eax
mov word [esp + 0x30], ax
call fcn.025d5989
mov eax, dword [eax]
mov al, byte [eax]
mov byte [esp + 0x30], al
lea eax, [esp + 0x30]
push eax
push ebx
call fcn.025d55b0
add esp, 0x10
lea ecx, [esp + 0x18]
mov ebx, eax
push dword [ebp + 0x30]
call fcn.0247b549
lea eax, [esp + 0x18]
push eax
call fcn.0247a5ab
pop ecx
lea ecx, [esp + 0x18]
mov esi, eax
call fcn.0247ba5f
xor eax, eax
mov dword [esp + 0x40], 0xf
push eax
push dword [esp + 0x14]
lea ecx, [esp + 0x34]
mov dword [esp + 0x44], eax
mov byte [esp + 0x34], al
call fcn.02486c57
cmp dword [esp + 0x40], 0x10
lea eax, [esp + 0x2c]
mov ecx, dword [esp + 0x14]
cmovae eax, dword [esp + 0x2c]
push eax
mov eax, dword [esp + 0x14]
add eax, ecx
push eax
push ecx
mov ecx, esi
call fcn.0249aad5
push dword [ebp + 0x30]
lea ecx, [esp + 0x1c]
call fcn.0247b549
lea eax, [esp + 0x18]
push eax
call fcn.0247a705
pop ecx
mov esi, eax
lea ecx, [esp + 0x18]
mov dword [esp + 0x14], esi
call fcn.0247ba5f
mov eax, dword [esi]
lea ecx, [esp + 0x44]
push ecx
mov esi, dword [eax + 0x14]
mov ecx, esi
call dword [0x440041c]
mov ecx, dword [esp + 0x18]
call esi
mov ecx, dword [esp + 0x14]
mov eax, dword [ecx]
mov esi, dword [eax + 0x10]
mov ecx, esi
call dword [0x440041c]
mov ecx, dword [esp + 0x14]
call esi
mov byte [esp + 0x18], al
mov eax, dword [esp + 0x10]
cmp ebx, eax
je 0x247e7a4
mov eax, dword [esp + 0x14]
mov eax, dword [eax]
mov esi, dword [eax + 0xc]
mov ecx, esi
call dword [0x440041c]
mov ecx, dword [esp + 0x14]
call esi
cmp dword [esp + 0x40], 0x10
mov cl, al
lea eax, [esp + 0x2c]
cmovae eax, dword [esp + 0x2c]
mov byte [eax + ebx], cl
mov eax, dword [esp + 0x10]
cmp ebx, eax
cmove ebx, dword [esp + 0x20]
lea esi, [esp + 0x44]
cmp dword [esp + 0x58], 0x10
cmovae esi, dword [esp + 0x44]
jmp 0x247e7e3
test al, al
jle 0x247e7e9
movsx ecx, al
mov eax, ebx
sub eax, edi
cmp ecx, eax
jae 0x247e7e9
push dword [esp + 0x18]
sub ebx, ecx
lea ecx, [esp + 0x30]
push 1
push ebx
call fcn.0248e79c
lea eax, [esi + 1]
cmp byte [eax], 0
cmovg esi, eax
mov al, byte [esi]
cmp al, 0x7f
jne 0x247e7b9
cmp dword [ebp + 0x24], 0
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x10], eax
jl 0x247e80a
jg 0x247e7ff
cmp dword [ebp + 0x20], 0
jbe 0x247e80a
mov esi, dword [ebp + 0x20]
cmp esi, eax
jbe 0x247e80a
sub esi, eax
jmp 0x247e80c
xor esi, esi
mov eax, dword [ebp + 0x14]
mov ebx, dword [esp + 0x64]
and eax, 0x1c0
cmp eax, 0x40
je 0x247e8d3
cmp eax, 0x100
je 0x247e87c
push esi
push dword [esp + 0x7c]
lea eax, [esp + 0x20]
push dword [esp + 0x78]
push dword [esp + 0x78]
push eax
push ebx
call fcn.0247fa2d
mov ecx, eax
xor esi, esi
cmp dword [esp + 0x58], 0x10
push edi
mov eax, dword [ecx]
mov dword [esp + 0x88], eax
mov eax, dword [ecx + 4]
mov dword [esp + 0x8c], eax
lea eax, [esp + 0x48]
cmovae eax, dword [esp + 0x48]
push eax
push dword [ecx + 4]
lea eax, [esp + 0x3c]
push dword [ecx]
push eax
push ebx
call fcn.0247f66b
add esp, 0x30
jmp 0x247e8f9
cmp dword [esp + 0x40], 0x10
lea eax, [esp + 0x2c]
push edi
cmovae eax, dword [esp + 0x30]
push eax
push dword [esp + 0x78]
lea eax, [esp + 0x24]
push dword [esp + 0x78]
push eax
push ebx
call fcn.0247f66b
mov ecx, eax
push esi
push dword [esp + 0x94]
mov eax, dword [ecx]
mov dword [esp + 0x8c], eax
mov eax, dword [ecx + 4]
mov dword [esp + 0x90], eax
lea eax, [esp + 0x38]
push dword [ecx + 4]
push dword [ecx]
push eax
push ebx
call fcn.0247fa2d
add esp, 0x30
xor esi, esi
jmp 0x247e8f9
cmp dword [esp + 0x40], 0x10
lea eax, [esp + 0x2c]
push edi
cmovae eax, dword [esp + 0x30]
push eax
push dword [esp + 0x78]
lea eax, [esp + 0x24]
push dword [esp + 0x78]
push eax
push ebx
call fcn.0247f66b
add esp, 0x18
mov ecx, dword [eax]
cmp dword [esp + 0x40], 0x10
mov dword [esp + 0x6c], ecx
mov edx, dword [eax + 4]
lea eax, [esp + 0x2c]
cmovae eax, dword [esp + 0x2c]
sub dword [esp + 0x10], edi
add eax, edi
push dword [esp + 0x10]
mov dword [esp + 0x74], edx
push eax
push edx
push ecx
lea eax, [esp + 0x28]
push eax
push ebx
call fcn.0247f66b
push esi
push dword [esp + 0x94]
mov esi, dword [esp + 0x44]
xor edi, edi
mov ecx, dword [eax]
mov dword [esp + 0x8c], ecx
mov eax, dword [eax + 4]
push eax
push ecx
push esi
push ebx
mov dword [esp + 0xa0], eax
mov dword [ebp + 0x20], edi
mov dword [ebp + 0x24], edi
call fcn.0247fa2d
add esp, 0x30
lea ecx, [esp + 0x44]
push edi
push 1
call fcn.0247fc46
push edi
push 1
lea ecx, [esp + 0x34]
call fcn.0247fc46
mov ecx, dword [esp + 0x5c]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.02585cf8
add esp, 0x50
ret