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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x74
mov eax, dword [0x53f4a0]
xor eax, esp
mov dword [esp + 0x70], eax
push ebx
mov ebx, ecx
push esi
push edi
movzx edi, byte [ebx + 0x1e]
inc edi
xor esi, esi
mov ecx, 8
sub ecx, edi
cmp byte [ebx + 0x1c], 0
mov dword [esp + 0x30], esi
mov dword [esp + 0x34], esi
mov dword [esp + 0x18], edi
mov dword [esp + 0x58], ecx
jne 0x412207
mov eax, dword [ebx + 4]
mov edx, dword [eax]
push 0xa
push ecx
push edi
push eax
mov eax, dword [edx + 0x38]
call eax
add esp, 0x10
cmp eax, esi
jne 0x41251e
push 0x30
lea ecx, [ebx + 0x20]
push esi
push ecx
call fcn.004eb2d0
mov eax, dword [ebx + 8]
mov edx, dword [eax]
mov edx, dword [edx + 0x18]
add esp, 0xc
lea ecx, [esp + 0x20]
push ecx
push eax
call edx
add esp, 8
mov dword [esp + 0x10], eax
cmp eax, esi
jne 0x4124fe
cmp dword [esp + 0x24], esi
jl 0x4124ac
jg 0x41224c
cmp dword [esp + 0x20], 0x20
jbe 0x4124ac
mov eax, dword [ebx + 8]
mov ecx, dword [eax]
push esi
push esi
push 0x20
lea edx, [esp + 0x68]
push edx
push eax
mov eax, dword [ecx + 8]
call eax
add esp, 0x14
mov dword [esp + 0x10], eax
cmp eax, esi
jne 0x4124fe
movzx eax, byte [esp + 0x5c]
movzx ecx, byte [esp + 0x5d]
movzx edx, byte [esp + 0x5e]
movzx esi, byte [esp + 0x64]
shl eax, 8
or eax, ecx
movzx ecx, byte [esp + 0x5f]
shl eax, 8
or eax, edx
movzx edx, byte [esp + 0x65]
shl esi, 8
or esi, edx
movzx edx, byte [esp + 0x67]
shl eax, 8
or eax, ecx
movzx ecx, byte [esp + 0x66]
shl esi, 8
or esi, ecx
shl esi, 8
mov ecx, eax
or esi, edx
and ecx, 0xfffffffe
mov dword [esp + 0x2c], esi
cmp ecx, 0x377f0682
jne 0x4124ac
lea edx, [esi - 1]
test esi, edx
jne 0x4124ac
lea ecx, [esi - 0x200]
cmp ecx, 0x7e00
ja 0x4124ac
and al, 1
lea ecx, [esp + 0x68]
mov byte [esp + 0x17], al
mov byte [ebx + 0x2d], al
mov word [ebx + 0x18], si
call fcn.00409670
mov edx, dword [esp + 0x6c]
xor ecx, ecx
cmp byte [esp + 0x17], cl
lea edi, [ebx + 0x38]
sete cl
mov dword [ebx + 0x54], eax
mov eax, dword [esp + 0x70]
push edi
mov dword [ebx + 0x40], edx
mov dword [ebx + 0x44], eax
lea eax, [esp + 0x60]
push ecx
xor ecx, ecx
lea edx, [ecx + 0x18]
call fcn.00411ce0
add esp, 8
lea ecx, [esp + 0x74]
call fcn.00409670
cmp dword [edi], eax
jne 0x4124a8
lea ecx, [esp + 0x78]
call fcn.00409670
cmp dword [ebx + 0x3c], eax
jne 0x4124a8
lea ecx, [esp + 0x60]
call fcn.00409670
cmp eax, 0x2de218
je 0x412373
mov eax, 0xa09a
call fcn.0045f150
mov dword [esp + 0x10], eax
jmp 0x4124a8
lea edi, [esi + 0x18]
call fcn.0045cf70
test eax, eax
jne 0x412390
push edi
call fcn.004065a0
add esp, 4
mov dword [esp + 0x1c], eax
test eax, eax
jne 0x4123a1
mov edi, dword [esp + 0x18]
mov dword [esp + 0x10], 7
jmp 0x4124fe
lea eax, [esi + 0x18]
cdq
mov ecx, eax
mov edi, 0x20
mov dword [esp + 0x40], eax
add ecx, edi
mov eax, edx
adc eax, 0
cmp eax, dword [esp + 0x24]
mov dword [esp + 0x38], 0
mov dword [esp + 0x54], 0
mov dword [esp + 0x44], edx
jg 0x41249b
jl 0x4123e7
cmp ecx, dword [esp + 0x20]
ja 0x41249b
jmp 0x4123e7
mov esi, dword [esp + 0x2c]
mov edx, dword [esp + 0x54]
mov eax, dword [ebx + 8]
push edx
push edi
add esi, 0x18
push esi
mov esi, dword [esp + 0x28]
push esi
call fcn.00405a60
add esp, 0x10
mov dword [esp + 0x10], eax
test eax, eax
jne 0x41249f
lea eax, [esi + 0x18]
push eax
lea eax, [esp + 0x50]
push eax
lea ecx, [esp + 0x44]
push ecx
call fcn.00411ee0
add esp, 0xc
test eax, eax
je 0x41249b
mov esi, dword [esp + 0x38]
mov edx, dword [esp + 0x3c]
inc esi
push edx
push ebx
mov eax, esi
mov dword [esp + 0x40], esi
call fcn.004120b0
add esp, 8
mov dword [esp + 0x10], eax
test eax, eax
jne 0x41249b
mov eax, dword [esp + 0x4c]
test eax, eax
je 0x41246d
mov ecx, dword [ebx + 0x38]
mov edx, dword [ebx + 0x3c]
mov dword [ebx + 0x34], eax
mov ax, word [esp + 0x2c]
mov dword [ebx + 0x30], esi
mov word [ebx + 0x2e], ax
mov dword [esp + 0x30], ecx
mov dword [esp + 0x34], edx
mov ecx, dword [esp + 0x40]
mov edx, dword [esp + 0x54]
mov eax, dword [esp + 0x44]
add edi, ecx
adc edx, eax
add ecx, edi
adc eax, edx
cmp eax, dword [esp + 0x24]
mov dword [esp + 0x54], edx
jl 0x4123e3
jg 0x41249b
cmp ecx, dword [esp + 0x20]
jbe 0x4123e3
mov esi, dword [esp + 0x1c]
push esi
call fcn.00406880
add esp, 4
mov edi, dword [esp + 0x18]
cmp dword [esp + 0x10], 0
jne 0x4124fe
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x34]
mov edx, ebx
mov dword [ebx + 0x38], eax
mov dword [ebx + 0x3c], ecx
call fcn.00411da0
mov edx, dword [ebx + 0x14]
mov eax, dword [edx]
add eax, 0x60
mov dword [eax], 0
mov dword [eax + 4], 0
add eax, 8
mov ecx, 4
jmp 0x4124f0
mov dword [eax], 0xffffffff
add eax, 4
sub ecx, 1
jne 0x4124f0
cmp byte [ebx + 0x1c], 0
jne 0x41251a
mov ecx, dword [esp + 0x58]
mov ebx, dword [ebx + 4]
mov eax, dword [ebx]
mov edx, dword [eax + 0x38]
push 9
push ecx
push edi
push ebx
call edx
add esp, 0x10
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x7c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004ea5a8
mov esp, ebp
pop ebp
ret