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

Disassembly:
push 0xffffffffffffffff
push 0x1004ee60
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x48
push ebx
push ebp
push esi
push edi
xor ebx, ebx
mov dword [esp + 0x60], ebx
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], ebx
push 1
mov ebp, 0xf
push 0x10053578
lea ecx, [esp + 0x44]
mov byte [esp + 0x68], 1
mov dword [esp + 0x5c], ebp
mov dword [esp + 0x58], ebx
mov byte [esp + 0x48], bl
call fcn.10001f80
mov eax, dword [esp + 0x68]
mov ecx, dword [eax + 0x168]
mov edi, 0x10
cmp ecx, edi
mov byte [esp + 0x60], 2
jb 0x100042b4
mov edx, dword [eax + 0x154]
jmp 0x100042ba
lea edx, [eax + 0x154]
mov eax, edx
mov dword [esp + 0x38], ebp
mov dword [esp + 0x34], ebx
mov byte [esp + 0x24], bl
lea esi, [eax + 1]
jmp 0x100042d0
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x100042d0
sub eax, esi
push eax
push edx
lea ecx, [esp + 0x28]
call fcn.10001f80
lea eax, [esp + 0x3c]
push eax
lea ecx, [esp + 0x24]
push ecx
lea edx, [esp + 0x18]
push edx
mov byte [esp + 0x6c], 3
call fcn.10030915
mov eax, dword [esp + 0x44]
add esp, 0xc
cmp eax, edi
jb 0x10004315
mov eax, dword [esp + 0x24]
push eax
call fcn.10036530
add esp, 4
cmp dword [esp + 0x54], edi
mov dword [esp + 0x38], ebp
mov dword [esp + 0x34], ebx
mov byte [esp + 0x24], bl
mov byte [esp + 0x60], 1
jb 0x10004339
mov ecx, dword [esp + 0x40]
push ecx
call fcn.10036530
add esp, 4
mov ebp, dword [esp + 0x14]
cmp ebp, ebx
jne 0x10004345
xor esi, esi
jmp 0x1000435e
mov ecx, dword [esp + 0x18]
sub ecx, ebp
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov esi, edx
shr esi, 0x1f
add esi, edx
cmp esi, ebx
mov dword [esp + 0x68], ebx
jle 0x10004396
xor edi, edi
lea edx, [esp + 0x70]
lea eax, [edi + ebp]
push edx
push eax
call fcn.100306b8
add esp, 8
test al, al
jne 0x100043f5
mov eax, dword [esp + 0x68]
mov ebp, dword [esp + 0x14]
inc eax
add edi, 0x1c
cmp eax, esi
mov dword [esp + 0x68], eax
jl 0x10004368
mov edi, 0x10
cmp ebp, ebx
je 0x100043bc
mov edx, dword [esp + 0x68]
mov ecx, dword [esp + 0x18]
push edx
lea eax, [esp + 0x14]
push eax
push ecx
push ebp
call fcn.10002ea0
mov edx, dword [esp + 0x24]
push edx
call fcn.10036530
add esp, 0x14
cmp dword [esp + 0x88], edi
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], ebx
jb 0x100043de
mov eax, dword [esp + 0x74]
push eax
call fcn.10036530
add esp, 4
pop edi
pop esi
pop ebp
xor al, al
pop ebx
mov ecx, dword [esp + 0x48]
mov dword fs:[0], ecx
add esp, 0x54
ret 0x24
mov esi, dword [esp + 0x6c]
push 0xffffffffffffffff
push ebx
lea eax, [esp + 0x78]
push eax
lea ecx, [esi + 4]
call fcn.10001e90
push 0xffffffffffffffff
push ebx
lea ecx, [esp + 0x78]
push ecx
lea ecx, [esi + 0x44]
call fcn.10001e90
mov eax, dword [esp + 0x14]
cmp eax, ebx
mov dword [esi + 0x3c], ebx
je 0x10004446
mov edx, dword [esp + 0x68]
push edx
mov edx, dword [esp + 0x1c]
lea ecx, [esp + 0x14]
push ecx
push edx
push eax
call fcn.10002ea0
mov eax, dword [esp + 0x24]
push eax
call fcn.10036530
add esp, 0x14
cmp dword [esp + 0x88], 0x10
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], ebx
jb 0x10004469
mov ecx, dword [esp + 0x74]
push ecx
call fcn.10036530
add esp, 4
mov ecx, dword [esp + 0x58]
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
mov dword fs:[0], ecx
add esp, 0x54
ret 0x24