Function at 0x100245e7
Capabilities:
Link many functions at runtime

Disassembly:
sub esp, 0x1c
push ebx
push ebp
push esi
push edi
push dword [0x10035368]
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push 4
push 0x1000
push dword [0x1003535c]
mov ebx, eax
xor ebp, ebp
push ebp
mov dword [esp + 0x28], ebx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
push dword [0x1003535c]
mov esi, eax
push esi
call fcn.100245b5
pop ecx
pop ecx
push 0x104
push esi
push ebp
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov edx, dword [0x10035364]
mov eax, ebp
cmp word [esi], bp
je 0x10024647
inc eax
cmp word [esi + eax*2], bp
jne 0x10024640
push 0x5c
pop edi
jmp 0x10024653
xor ecx, ecx
mov word [esi + eax*2], cx
dec eax
cmp word [esi + eax*2 - 2], di
jne 0x1002464c
mov cl, byte [edx]
test cl, cl
je 0x10024674
lea edi, [esi + eax*2]
movsx ax, cl
inc edx
mov word [edi], ax
lea edi, [edi + 2]
mov cl, byte [edx]
test cl, cl
jne 0x10024663
push dword [0x1003533c]
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push ebx
call edi
push ebp
push 0x80
push 3
push ebp
push 1
push 1
push esi
call eax
mov esi, eax
mov dword [esp + 0x1c], esi
cmp esi, 0xffffffff
je 0x100247f1
push dword [0x1003534c]
push ebx
call edi
push ebp
push esi
call eax
push 4
push 0x1000
push dword [0x10035354]
mov esi, eax
push ebp
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
push dword [0x1003536c]
mov ebx, eax
push dword [esp + 0x1c]
call edi
push ebp
lea ecx, [esp + 0x18]
mov dword [esp + 0x18], ebp
push ecx
push esi
push ebx
push dword [esp + 0x2c]
call eax
test eax, eax
je 0x100247f1
mov eax, dword [esp + 0x14]
add eax, ebx
mov dword [esp + 0x1c], eax
mov eax, dword [0x10035344]
add ebx, eax
mov ecx, dword [ebx]
lea eax, [ebx + 4]
mov edx, dword [eax]
add eax, 4
test ecx, ecx
je 0x10024716
add dword [eax], edx
lea eax, [eax + 4]
sub ecx, 1
jne 0x1002470c
mov eax, dword [0x10035358]
add ebx, eax
mov ebp, dword [esp + 0x18]
lea eax, [ebx + 1]
push eax
push ebp
call edi
mov esi, eax
test esi, esi
je 0x100247f1
movsx ecx, byte [ebx]
add ebx, ecx
lea ecx, [ebx + 1]
push ecx
push ebp
call edi
mov dword [esp + 0x18], eax
test eax, eax
je 0x100247f1
movsx ecx, byte [ebx]
add ebx, ecx
lea ecx, [ebx + 1]
push ecx
call esi
mov edx, eax
test edx, edx
je 0x100247f1
mov eax, dword [edx + 0x3c]
movsx ecx, byte [ebx]
mov edi, dword [eax + edx + 0x2c]
lea eax, [esp + 0x10]
mov ebp, dword [ebx + ecx + 4]
lea esi, [ecx + 0xc]
push eax
push 0x40
add esi, ebx
add edi, edx
mov ebx, dword [ebx + ecx + 8]
and dword [esp + 0x18], 0
push ebx
push edi
call dword [esp + 0x28]
push ebx
push esi
push edi
call fcn.10024578
add esp, 0xc
lea eax, [esp + 0x10]
push eax
push dword [esp + 0x14]
push ebx
push edi
call dword [esp + 0x28]
mov eax, dword [0x10035338]
xor ecx, ecx
add edi, ebp
cmp byte [eax], cl
je 0x100247cf
mov edx, dword [esp + 0x1c]
mov eax, dword [0x10035338]
movsx ax, byte [eax + ecx]
mov word [edx + ecx*2], ax
inc ecx
mov eax, dword [0x10035338]
cmp byte [eax + ecx], 0
jne 0x100247b5
mov eax, dword [esp + 0x1c]
xor edx, edx
mov word [eax + ecx*2], dx
mov dword [esp + 0x24], eax
lea eax, [ebx + esi]
mov dword [esp + 0x20], eax
lea eax, [esp + 0x20]
push eax
mov byte [esp + 0x2c], 1
call edi
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret