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

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x78
push ebx
push esi
push edi
mov esi, ecx
push ebp
push eax
call dword [0x416644]
mov ecx, dword [esi + 0x18]
add ecx, eax
cmp ecx, 0x3e
jbe 0x40612a
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x78
ret 8
mov ecx, dword [esi + 0x18]
mov eax, 1
inc ecx
xor edx, edx
xor edi, edi
mov dword [esi + 0x18], ecx
call fcn.004122a0
mov ecx, esi
mov dword [esp + 0x20], eax
lea eax, [esp + 0x20]
mov dword [esp + 0x24], edx
push eax
push edi
call fcn.00406000
mov bx, word [esp + 0x20]
mov dword [esp + 0x1c], edi
mov word [esp + 0x12], di
mov dword [esp + 0x18], edi
mov dword [esp + 0x14], edi
mov bp, word [esp + 0x12]
lea eax, [esp + 0x8c]
push eax
call dword [0x41658c]
mov word [esp + 0x16], ax
mov eax, dword [esp + 0x18]
add esp, 4
cmp eax, 1
je 0x4061a8
cmp eax, 2
je 0x4061b2
cmp word [esp + 0x12], 0x5c
jne 0x4061ba
mov dword [esp + 0x14], 1
jmp 0x406558
mov dword [esp + 0x14], 2
jmp 0x4061ba
mov dword [esp + 0x14], 0
cmp dword [esp + 0x1c], 0
jne 0x40631c
cmp dword [esp + 0x14], 0
jne 0x4061ec
mov eax, dword [esp + 0x12]
and eax, 0xffff
cmp eax, 0x2a
je 0x406247
cmp eax, 0x3f
je 0x40626c
cmp eax, 0x5b
je 0x40629d
cmp word [esp + 0x12], 0
jne 0x406205
cmp dword [esp + 0x14], 0
jne 0x406205
cmp bp, 0x2a
je 0x406558
cmp dword [esp + 0x90], 0
mov eax, dword [esi + 0x18]
jne 0x4062af
inc eax
xor edx, edx
mov cl, al
mov eax, 1
call fcn.004122a0
mov ecx, dword [esp + 0x12]
mov dword [esp + 0x30], eax
lea eax, [esp + 0x30]
mov dword [esp + 0x34], edx
push eax
push ecx
push edi
mov ecx, esi
call fcn.00405f40
inc dword [esi + 0x18]
jmp 0x406558
mov cl, byte [esi + 0x18]
mov eax, 1
xor edx, edx
call fcn.004122a0
mov ecx, dword [esi + 0x18]
mov dword [esp + 0x20], eax
lea eax, [esp + 0x20]
mov dword [esp + 0x24], edx
push eax
push ecx
jmp 0x406551
mov ebp, dword [esi + 0x18]
xor edx, edx
lea eax, [ebp + 1]
mov cl, al
mov eax, 1
call fcn.004122a0
mov ecx, esi
mov dword [esp + 0x28], eax
lea eax, [esp + 0x28]
mov dword [esp + 0x2c], edx
push eax
push ebp
call fcn.00406000
inc dword [esi + 0x18]
jmp 0x406558
mov eax, 1
mov dword [esp + 0x1c], eax
mov dword [esp + 0x18], eax
jmp 0x406558
inc eax
xor edx, edx
mov cl, al
mov eax, 1
call fcn.004122a0
mov ebp, dword [esp + 0x12]
mov dword [esp + 0x38], eax
and ebp, 0xffff
lea eax, [esp + 0x38]
mov dword [esp + 0x3c], edx
push eax
push ebp
call dword [0x416620]
push eax
mov ecx, esi
push edi
call fcn.00405f40
mov eax, dword [esi + 0x18]
xor edx, edx
inc eax
mov cl, al
mov eax, 1
call fcn.004122a0
mov dword [esp + 0x40], eax
lea eax, [esp + 0x40]
mov dword [esp + 0x44], edx
push eax
push ebp
call dword [0x4166a0]
push eax
mov ecx, esi
push edi
call fcn.00405f40
inc dword [esi + 0x18]
jmp 0x406558
cmp dword [esp + 0x18], 1
jne 0x40635b
mov dword [esp + 0x18], 2
mov word [esp + 0x10], 0
cmp word [esp + 0x12], 0x5e
je 0x406346
cmp word [esp + 0x12], 0x21
jne 0x406443
cmp dword [esp + 0x14], 0
jne 0x406443
mov edi, 1
jmp 0x406558
cmp dword [esp + 0x18], 3
jne 0x406443
cmp bx, word [esp + 0x12]
ja 0x406408
cmp dword [esp + 0x90], 0
mov eax, dword [esi + 0x18]
jne 0x40639d
inc eax
xor edx, edx
mov cl, al
mov eax, 1
call fcn.004122a0
mov dword [esp + 0x48], eax
lea eax, [esp + 0x48]
mov dword [esp + 0x4c], edx
push eax
push ebx
jmp 0x4063f3
inc eax
xor edx, edx
movzx ebp, bx
mov cl, al
mov eax, 1
call fcn.004122a0
mov dword [esp + 0x50], eax
lea eax, [esp + 0x50]
mov dword [esp + 0x54], edx
push eax
push ebp
call dword [0x416620]
push eax
mov ecx, esi
push edi
call fcn.00405f40
mov eax, dword [esi + 0x18]
xor edx, edx
inc eax
mov cl, al
mov eax, 1
call fcn.004122a0
mov dword [esp + 0x58], eax
lea eax, [esp + 0x58]
mov dword [esp + 0x5c], edx
push eax
push ebp
call dword [0x4166a0]
push eax
inc bx
push edi
mov ecx, esi
call fcn.00405f40
cmp bx, word [esp + 0x12]
jbe 0x406371
cmp edi, 1
jne 0x406436
mov ebp, dword [esi + 0x18]
xor edx, edx
lea eax, [ebp + 1]
mov cl, al
mov eax, 1
call fcn.004122a0
mov ecx, esi
mov dword [esp + 0x60], eax
lea eax, [esp + 0x60]
mov dword [esp + 0x64], edx
push eax
push ebp
call fcn.00406000
mov dword [esp + 0x18], 2
jmp 0x406558
cmp word [esp + 0x12], 0x5d
jne 0x406461
xor eax, eax
cmp dword [esp + 0x14], eax
jne 0x406461
xor edi, edi
mov dword [esp + 0x1c], eax
inc dword [esi + 0x18]
jmp 0x406558
cmp word [esp + 0x12], 0x2d
jne 0x406482
cmp dword [esp + 0x14], 0
jne 0x406482
mov dword [esp + 0x18], 3
mov bx, word [esp + 0x10]
jmp 0x406558
mov ax, word [esp + 0x12]
cmp dword [esp + 0x90], 0
mov word [esp + 0x10], ax
mov eax, dword [esi + 0x18]
jne 0x4064bc
inc eax
xor edx, edx
mov cl, al
mov eax, 1
call fcn.004122a0
mov ecx, dword [esp + 0x12]
mov dword [esp + 0x68], eax
lea eax, [esp + 0x68]
mov dword [esp + 0x6c], edx
push eax
push ecx
jmp 0x406519
inc eax
xor edx, edx
mov cl, al
mov eax, 1
call fcn.004122a0
mov ebp, dword [esp + 0x12]
mov dword [esp + 0x70], eax
and ebp, 0xffff
lea eax, [esp + 0x70]
mov dword [esp + 0x74], edx
push eax
push ebp
call dword [0x416620]
push eax
mov ecx, esi
push edi
call fcn.00405f40
mov eax, dword [esi + 0x18]
xor edx, edx
inc eax
mov cl, al
mov eax, 1
call fcn.004122a0
mov dword [esp + 0x78], eax
lea eax, [esp + 0x78]
mov dword [esp + 0x7c], edx
push eax
push ebp
call dword [0x4166a0]
push eax
push edi
mov ecx, esi
call fcn.00405f40
cmp edi, 1
jne 0x406558
mov ebp, dword [esi + 0x18]
xor edx, edx
lea eax, [ebp + 1]
mov cl, al
mov eax, 1
call fcn.004122a0
mov dword [esp + 0x80], eax
lea eax, [esp + 0x80]
mov dword [esp + 0x84], edx
push eax
push ebp
mov ecx, esi
call fcn.00406000
cmp word [esp + 0x12], 0
jne 0x40616a
lea edi, [esi + 0x10]
mov cl, byte [esi + 0x18]
mov eax, 1
xor edx, edx
call fcn.004122a0
pop ebp
or dword [edi], eax
mov eax, 1
or dword [edi + 4], edx
pop edi
pop esi
pop ebx
add esp, 0x78
ret 8