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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov esi, eax
mov ebx, dword [ebp + 0xc]
mov edi, dword [ebp + 0x18]
xor eax, eax
push ebp
push 0x409441
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 0xc], eax
test ebx, ebx
je 0x409261
cmp byte [ebx], 0
je 0x409261
movzx eax, byte [ebx + 1]
cmp al, byte [0x428a31]
jne 0x409261
cmp dword [ebp + 8], 0x38
je 0x40926b
mov ebx, 0xfffffffa
jmp 0x409433
lea eax, [esi + 0x18]
call fcn.00404570
cmp dword [esi + 0x20], 0
jne 0x409285
mov dword [esi + 0x20], 0x40912c
xor eax, eax
mov dword [esi + 0x28], eax
cmp dword [esi + 0x24], 0
jne 0x409292
mov dword [esi + 0x24], 0x409124
cmp dword [ebp - 4], 0xffffffff
jne 0x40929f
mov dword [ebp - 4], 6
test edi, edi
jge 0x4092ac
mov dword [ebp - 0xc], 1
neg edi
cmp dword [ebp + 0x14], 1
jl 0x4092e0
cmp dword [ebp + 0x14], 9
jg 0x4092e0
cmp dword [ebp - 8], 8
jne 0x4092e0
cmp edi, 9
jl 0x4092e0
cmp edi, 0xf
jg 0x4092e0
cmp dword [ebp - 4], 0
jl 0x4092e0
cmp dword [ebp - 4], 9
jg 0x4092e0
cmp dword [ebp + 0x10], 0
jl 0x4092e0
cmp dword [ebp + 0x10], 2
jle 0x4092ea
mov ebx, 0xfffffffe
jmp 0x409433
mov eax, esi
mov ecx, 0x16b8
mov edx, 1
call fcn.00409138
mov ebx, eax
test ebx, ebx
jne 0x40930b
mov ebx, 0xfffffffc
jmp 0x409433
mov dword [esi + 0x1c], ebx
mov dword [ebx], esi
mov eax, dword [ebp - 0xc]
mov dword [ebx + 0x18], eax
mov eax, edi
mov dword [ebx + 0x28], eax
mov ecx, eax
mov edx, 1
shl edx, cl
mov dword [ebx + 0x24], edx
dec edx
mov dword [ebx + 0x2c], edx
mov eax, dword [ebp + 0x14]
add eax, 7
mov dword [ebx + 0x48], eax
mov ecx, eax
mov edx, 1
shl edx, cl
mov dword [ebx + 0x44], edx
dec edx
mov dword [ebx + 0x4c], edx
mov eax, dword [ebx + 0x48]
add eax, 3
dec eax
mov ecx, 3
xor edx, edx
div ecx
mov dword [ebx + 0x50], eax
mov eax, esi
mov ecx, 2
mov edx, dword [ebx + 0x24]
call fcn.00409138
mov dword [ebx + 0x30], eax
mov eax, esi
mov ecx, 2
mov edx, dword [ebx + 0x24]
call fcn.00409138
mov dword [ebx + 0x38], eax
mov eax, esi
mov ecx, 2
mov edx, dword [ebx + 0x44]
call fcn.00409138
mov dword [ebx + 0x3c], eax
mov ecx, dword [ebp + 0x14]
add ecx, 6
mov edi, 1
shl edi, cl
mov dword [ebx + 0x1690], edi
mov eax, esi
mov ecx, 4
mov edx, edi
call fcn.00409138
mov dword [ebx + 8], eax
mov edx, dword [ebx + 0x1690]
add edx, edx
add edx, edx
mov dword [ebx + 0xc], edx
cmp dword [ebx + 0x30], 0
je 0x4093d6
cmp dword [ebx + 0x38], 0
je 0x4093d6
cmp dword [ebx + 0x3c], 0
je 0x4093d6
cmp dword [ebx + 8], 0
jne 0x4093f1
lea eax, [esi + 0x18]
mov edx, 0x428ac0
call fcn.004047d4
mov eax, esi
call fcn.004097f8
mov ebx, 0xfffffffc
jmp 0x409433
mov edx, dword [ebx + 0x1690]
shr edx, 1
lea eax, [eax + edx*2]
mov dword [ebx + 0x1698], eax
mov eax, dword [ebx + 0x1690]
lea eax, [eax + eax*2]
mov edx, dword [ebx + 8]
lea eax, [edx + eax]
mov dword [ebx + 0x168c], eax
mov eax, dword [ebp - 4]
mov dword [ebx + 0x78], eax
mov eax, dword [ebp + 0x10]
mov dword [ebx + 0x7c], eax
movzx eax, byte [ebp - 8]
mov byte [ebx + 0x1d], al
mov eax, esi
call fcn.0040947c
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x409448
ret