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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x144
mov eax, dword [0x44e4f8]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov dword [ebp - 0xf4], eax
mov eax, dword [ebp + 0x10]
push esi
mov dword [ebp - 0xd8], eax
push edi
mov edi, dword [ebp + 0x14]
xor ebx, ebx
lea eax, [ebp - 0xe8]
mov esi, edx
push eax
mov dword [ebp - 0xd0], esi
mov dword [ebp - 0x120], ecx
mov dword [ebp - 0xd4], edi
mov dword [ebp - 0xe4], ebx
mov dword [ebp - 0xe0], ebx
mov dword [ebp - 0xdc], ebx
call fcn.0041660b
pop ecx
lea eax, [ebp - 0xe8]
call fcn.004011c7
cmp eax, ebx
jne 0x41233c
mov dword [edi], 0x80004005
lea esi, [ebp - 0xe8]
call fcn.00401539
xor al, al
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0043223b
leave
ret 0x10
mov ecx, dword [esi + 0x30]
dec ecx
mov dword [ebp - 0xec], ebx
je 0x4123ff
dec ecx
dec ecx
jne 0x412406
lea edi, [esi + 0x6c]
mov eax, edi
call fcn.004011c7
test eax, eax
je 0x4123d8
mov eax, edi
call fcn.004011c7
dec eax
mov dword [ebp - 0xfc], eax
js 0x412406
mov esi, dword [ebp - 0xd0]
push dword [ebp - 0xfc]
add esi, 0x6c
call fcn.00408f06
lea ecx, [ebp - 0x14]
push ecx
mov ecx, eax
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 8], ebx
call fcn.0041660b
pop ecx
lea eax, [ebp - 0xe8]
push eax
lea eax, [ebp - 0x14]
push eax
lea edi, [ebp - 0xec]
call fcn.00413bf8
test eax, eax
lea esi, [ebp - 0x14]
je 0x4123cb
call fcn.00401539
dec dword [ebp - 0xfc]
jns 0x412376
jmp 0x4123d0
call fcn.00401539
mov esi, dword [ebp - 0xd0]
jmp 0x412406
lea eax, [ebp - 0xe8]
push eax
lea eax, [esi + 0x5c]
push eax
lea edi, [ebp - 0xec]
call fcn.00413bf8
cmp eax, ebx
je 0x412406
mov ecx, dword [ebp - 0xd4]
mov dword [ecx], eax
jmp 0x41231e
dec eax
mov dword [ebp - 0xec], eax
push dword [ebp - 0xec]
xor edi, edi
lea eax, [ebp - 0xe8]
call fcn.00410c30
pop ecx
lea eax, [ebp - 0xe8]
push eax
call fcn.00416288
pop ecx
lea eax, [ebp - 0xe8]
push eax
lea edi, [ebp - 0x3c]
call fcn.00416597
cmp dword [esi + 0x30], 2
pop ecx
mov byte [ebp - 0xca], bl
jne 0x4124fd
xor edi, edi
inc edi
cmp dword [ebp - 0x28], edi
jbe 0x4124fd
lea eax, [ebp - 0x3c]
call fcn.004011a7
cmp word [eax], 0x5f
jne 0x4124fd
push 2
pop edi
cmp dword [ebp - 0x28], edi
jne 0x41247b
mov eax, dword [ebp - 0xf4]
cmp byte [eax + 0x9c], bl
jne 0x412497
lea eax, [ebp - 0x3c]
call fcn.004011a7
cmp word [eax], 0x5c
je 0x412497
lea eax, [ebp - 0x3c]
call fcn.004011a7
cmp word [eax], 0x2f
jne 0x4124fd
push 1
lea eax, [ebp - 0x20]
mov dword [ebp - 0xc], ebx
mov word [ebp - 0x1c], bx
push eax
xor ebx, ebx
lea eax, [ebp - 0x3c]
mov dword [ebp - 8], 7
call fcn.004016e9
push 0x3a
lea esi, [ebp - 0x20]
call fcn.00402e57
mov eax, esi
push eax
call fcn.0040d1ca
test al, al
pop ecx
je 0x4124e3
xor edi, edi
inc edi
lea eax, [ebp - 0x3c]
call fcn.004011a7
mov word [eax], 0x3a
mov byte [ebp - 0xca], 1
push 0
push 1
lea esi, [ebp - 0x20]
call fcn.00401452
cmp byte [ebp - 0xca], bl
jne 0x4125b7
xor ebx, ebx
mov edi, dword [ebp - 0xd0]
cmp byte [edi + 0x39], bl
je 0x4125b9
cmp byte [edi + 0xc9], bl
je 0x412550
mov esi, dword [ebp - 0xe4]
cmp esi, dword [ebp - 0xe0]
jbe 0x412527
call fcn.004320b8
lea eax, [ebp - 0xe8]
mov dword [ebp - 0xfc], esi
lea esi, [ebp - 0x100]
mov dword [ebp - 0x100], eax
call fcn.0040508b
lea ecx, [edi + 0x7c]
call fcn.00402f1b
test eax, eax
je 0x412580
mov eax, dword [ebp - 0xe4]
cmp eax, dword [ebp - 0xe0]
mov esi, eax
jbe 0x412565
call fcn.004320b8
push esi
lea eax, [ebp - 0xe8]
push eax
add edi, 0x7c
push edi
lea eax, [ebp - 0xc]
push eax
lea esi, [ebp - 0xe8]
call fcn.00401499
lea eax, [ebp - 0xe8]
push eax
call fcn.00416288
pop ecx
lea eax, [ebp - 0xe8]
push eax
lea edi, [ebp - 0x11c]
call fcn.00416597
pop ecx
push 0xffffffffffffffff
lea ecx, [ebp - 0x3c]
push ecx
xor ebx, ebx
call fcn.004016e9
push ebx
push 1
mov esi, edi
call fcn.00401452
xor ebx, ebx
mov esi, dword [ebp - 0xf4]
cmp byte [esi + 0x9c], bl
jne 0x4125ec
lea eax, [ebp - 0xe8]
call fcn.004011c7
test eax, eax
je 0x4125ec
mov eax, dword [ebp - 0xe0]
push eax
add eax, 0xffffffe4
call fcn.00401788
sub dword [ebp - 0xe0], 0x1c
mov al, byte [esi + 0x9c]
cmp al, bl
mov edx, dword [ebp - 0xd0]
mov cl, 1
je 0x412606
cmp dword [edx + 0x30], 1
jne 0x412606
xor cl, cl
cmp dword [edx + 0x2c], 2
jne 0x41260e
xor cl, cl
cmp cl, bl
je 0x41280d
cmp byte [ebp - 0xca], bl
mov dword [ebp - 8], 7
mov dword [ebp - 0xc], ebx
mov word [ebp - 0x1c], bx
mov byte [ebp - 0xc9], bl
je 0x41266e
cmp al, bl
lea eax, [ebp - 0x20]
je 0x412648
push 0xffffffffffffffff
push eax
xor ebx, ebx
lea eax, [ebp - 0x3c]
call fcn.004016e9
jmp 0x412652
push eax
lea edi, [ebp - 0x3c]
call fcn.0040dc83
pop ecx
lea eax, [ebp - 0x20]
push eax
call fcn.0040d294
test al, al
pop ecx
jne 0x41266a
lea ecx, [ebp - 0x20]
call fcn.0040dba6
jmp 0x41267f
mov al, 1
jmp 0x412686
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0xe8]
push eax
push edx
call fcn.004115b1
mov byte [ebp - 0xc9], 1
cmp al, bl
jne 0x4126ec
lea esi, [ebp - 0x11c]
call fcn.0040e127
cmp dword [eax + 0x18], 8
jb 0x4126a0
mov eax, dword [eax + 4]
jmp 0x4126a3
add eax, 4
cmp dword [ebp - 8], 8
mov ecx, dword [ebp - 0x1c]
jae 0x4126af
lea ecx, [ebp - 0x1c]
push eax
push ecx
push 0x271a
lea ecx, [ebp - 0x5c]
call fcn.004040f8
add esp, 0xc
push ebx
push 1
lea esi, [ebp - 0x11c]
call fcn.00401452
mov esi, dword [ebp - 0xd0]
lea eax, [ebp - 0x5c]
push eax
push dword [ebp + 8]
call fcn.004139ac
push ebx
push 1
lea esi, [ebp - 0x5c]
call fcn.00401452
cmp byte [ebp - 0xca], bl
jne 0x4127c3
mov eax, dword [ebp - 0xf4]
cmp byte [eax + 0x9c], bl
je 0x412802
mov eax, dword [ebp - 0xd0]
cmp byte [eax + 0x58], bl
jne 0x412723
cmp byte [eax + 0x59], bl
jne 0x412723
cmp byte [eax + 0x5a], bl
je 0x412802
push 0xffffffffffffffff
lea eax, [ebp - 0x80]
mov dword [ebp - 0x6c], ebx
mov word [ebp - 0x7c], bx
mov dword [ebp - 0x64], ebx
mov dword [ebp - 0x60], ebx
mov byte [ebp - 0x5c], bl
mov dword [ebp - 0x58], ebx
mov dword [ebp - 0x54], ebx
mov byte [ebp - 0x50], bl
mov dword [ebp - 0x4c], ebx
mov dword [ebp - 0x48], ebx
mov byte [ebp - 0x44], bl
push eax
xor ebx, ebx
lea eax, [ebp - 0x20]
mov dword [ebp - 0x68], 7
call fcn.004016e9
mov ecx, dword [ebp - 0xd0]
cmp byte [ecx + 0x58], bl
mov eax, dword [ebp - 0xf4]
je 0x412785
cmp byte [eax + 0x98], bl
je 0x412785
mov edx, dword [eax + 0x74]
mov dword [ebp - 0x64], edx
mov edx, dword [eax + 0x78]
mov dword [ebp - 0x60], edx
mov byte [ebp - 0x5c], 1
cmp byte [ecx + 0x59], bl
je 0x4127a5
cmp byte [eax + 0x99], bl
je 0x4127a5
mov edx, dword [eax + 0x7c]
mov dword [ebp - 0x58], edx
mov edx, dword [eax + 0x80]
mov dword [ebp - 0x54], edx
mov byte [ebp - 0x50], 1
cmp byte [ecx + 0x5a], bl
je 0x4127d0
cmp byte [eax + 0x9a], bl
je 0x4127d0
mov edx, dword [eax + 0x84]
mov eax, dword [eax + 0x88]
mov dword [ebp - 0x4c], edx
jmp 0x4127df
cmp byte [ebp - 0xc9], bl
je 0x412802
jmp 0x4126f8
mov eax, dword [ecx + 0x98]
mov dword [ebp - 0x4c], eax
mov eax, dword [ecx + 0x9c]
mov dword [ebp - 0x48], eax
lea eax, [ebp - 0x80]
push eax
lea esi, [ecx + 0x12c]
mov byte [ebp - 0x44], 1
call fcn.00413fe4
push ebx
push 1
lea esi, [ebp - 0x80]
call fcn.00401452
xor ebx, ebx
push ebx
push 1
lea esi, [ebp - 0x20]
call fcn.00401452
mov eax, dword [ebp - 0xd8]
call fcn.00401e54
cmp byte [ebp - 0xca], bl
lea eax, [ebp - 0x3c]
je 0x412834
push 0xffffffffffffffff
push dword [ebp - 0xd8]
xor ebx, ebx
call fcn.004016e9
jmp 0x412869
push eax
mov eax, dword [ebp - 0xd0]
lea ecx, [ebp - 0x11c]
add eax, 0x3c
push ecx
call fcn.00401fe6
pop ecx
pop ecx
push 0xffffffffffffffff
push dword [ebp - 0xd8]
xor ebx, ebx
call fcn.004016e9
push ebx
push 1
lea esi, [ebp - 0x11c]
call fcn.00401452
mov esi, dword [ebp - 0xf4]
cmp byte [esi + 0x9c], bl
je 0x41288f
mov eax, dword [ebp - 0xd4]
mov dword [eax], ebx
push ebx
push 1
lea esi, [ebp - 0x3c]
call fcn.00401452
jmp 0x41231e
cmp byte [esi + 0x28], bl
jne 0x412dc3
lea eax, [ebp - 0xc8]
call fcn.0040d092
push dword [ebp - 0xd8]
mov byte [ebp - 0xca], bl
call fcn.0040d1ca
test al, al
pop ecx
je 0x412f5c
lea eax, [ebp - 0xc8]
push eax
push dword [ebp - 0xd8]
call fcn.0040d8dc
test al, al
pop ecx
pop ecx
je 0x412f5c
mov edi, dword [ebp - 0xd0]
mov eax, dword [edi + 0x2c]
cmp eax, 1
je 0x4128ec
cmp eax, 2
jne 0x412930
cmp dword [edi + 0x34], 1
ja 0x412930
lea eax, [ebp - 0xc8]
call fcn.00410b61
mov cl, byte [esi + 0x9a]
neg cl
lea edx, [esi + 0x84]
sbb ecx, ecx
and ecx, edx
call fcn.0042b2f0
test eax, eax
jg 0x412930
mov eax, dword [ebp - 0xd4]
mov dword [eax], ebx
lea eax, [ebp - 0xc8]
call fcn.0040d0c0
jmp 0x41287f
mov eax, dword [edi + 0x34]
sub eax, ebx
je 0x412941
dec eax
dec eax
jne 0x412ae0
jmp 0x412918
lea ecx, [ebp - 0xc8]
call fcn.0040d15a
mov dword [ebp - 0x128], eax
mov eax, ecx
mov dword [ebp - 0x124], edx
call fcn.00410b61
mov ecx, dword [eax]
mov dword [ebp - 0xc], ecx
mov eax, dword [eax + 4]
mov dword [ebp - 8], eax
lea eax, [edi + 0x1c]
mov byte [ebp - 0xc9], bl
mov dword [ebp - 0xf8], ebx
mov dword [ebp - 0xf4], ebx
call fcn.00414c4c
test al, al
je 0x4129e1
lea eax, [ebp - 0x68]
call fcn.0040e4d1
lea eax, [edi + 0x1c]
call fcn.004073b2
mov edx, dword [eax]
lea ecx, [ebp - 0x68]
push ecx
push 7
push dword [ebp + 8]
mov ecx, eax
call dword [edx + 0x1c]
test eax, eax
jne 0x4129d9
lea eax, [ebp - 0x68]
call fcn.004073b2
test eax, eax
setne byte [ebp - 0xc9]
cmp byte [ebp - 0xc9], bl
je 0x4129d9
lea ecx, [ebp - 0x68]
call fcn.0040e50d
mov dword [ebp - 0xf8], eax
mov dword [ebp - 0xf4], edx
lea eax, [ebp - 0x68]
call fcn.0040e4ea
lea eax, [edi + 0x118]
cmp eax, ebx
mov dword [ebp - 0xd0], eax
je 0x4129f6
call fcn.0040f3f9
lea eax, [edi + 0x20]
call fcn.004073b2
push dword [ebp - 0xd8]
mov dl, byte [ebp - 0xc9]
neg dl
lea ecx, [ebp - 0xec]
push ecx
lea ecx, [ebp - 0xf8]
push 1
mov dword [ebp - 0xfc], eax
mov eax, dword [eax]
sbb edx, edx
and edx, ecx
mov cl, byte [esi + 0x9a]
neg cl
push edx
lea edx, [esi + 0x84]
sbb ecx, ecx
and ecx, edx
push ecx
push dword [ebp - 0x120]
lea ecx, [ebp - 0x128]
push ecx
lea ecx, [ebp - 0xc]
push ecx
push dword [ebp - 0xd8]
mov ecx, dword [ebp - 0xfc]
call dword [eax + 0x18]
cmp eax, ebx
je 0x412a7f
mov ecx, dword [ebp - 0xd4]
mov dword [ecx], eax
mov eax, dword [ebp - 0xd0]
cmp eax, ebx
je 0x412920
call fcn.0040f407
jmp 0x412920
mov eax, dword [ebp - 0xec]
cmp eax, 7
ja case.default.0x412a8e
jmp dword [eax*4 + 0x412fa9]
mov eax, dword [ebp - 0xd4]
mov dword [eax], 0x80004004
cmp dword [ebp - 0xd0], ebx
je 0x412920
mov eax, dword [ebp - 0xd0]
jmp 0x412a75
mov dword [edi + 0x34], 2
mov eax, dword [ebp - 0xd4]
mov dword [eax], ebx
jmp 0x412aa1
mov dword [edi + 0x34], 1
cmp dword [ebp - 0xd0], ebx
je 0x412ae0
mov eax, dword [ebp - 0xd0]
call fcn.0040f407
mov eax, dword [edi + 0x34]
cmp eax, 3
jne 0x412cf7
mov ecx, dword [ebp - 0xd8]
call fcn.0041041b
test al, al
jne 0x412db8
push 0x271b
call fcn.004050db
lea ecx, [ebp - 0x11c]
call fcn.0041006a
push dword [ebp - 0xd8]
lea eax, [ebp - 0x5c]
push eax
lea eax, [ebp - 0x11c]
call fcn.00401fe6
pop ecx
pop ecx
push ebx
push 1
lea esi, [ebp - 0x11c]
call fcn.00401452
lea eax, [ebp - 0x5c]
push eax
push dword [ebp + 8]
mov esi, edi
call fcn.004139ac
cmp eax, ebx
push ebx
lea esi, [ebp - 0x5c]
push 1
je 0x412ce6
mov ecx, dword [ebp - 0xd4]
mov dword [ecx], eax
call fcn.00401452
jmp 0x412920
push 0xffffffffffffffff
lea eax, [esi + 0x48]
push eax
mov eax, dword [ebp - 0xd8]
xor ebx, ebx
call fcn.004016e9
mov ecx, dword [ebp - 0xd8]
call fcn.0041041b
test al, al
jne 0x412c1c
push 0x271b
call fcn.004050db
lea ecx, [ebp - 0x144]
call fcn.0041006a
push dword [ebp - 0xd8]
lea eax, [ebp - 0x5c]
push eax
lea eax, [ebp - 0x144]
call fcn.00401fe6
pop ecx
pop ecx
push ebx
inc ebx
push ebx
lea esi, [ebp - 0x144]
call fcn.00401452
lea eax, [ebp - 0x5c]
push eax
push dword [ebp + 8]
mov esi, edi
call fcn.004139ac
xor edi, edi
cmp eax, edi
push edi
lea esi, [ebp - 0x5c]
push ebx
je 0x412c0e
mov ecx, dword [ebp - 0xd4]
mov dword [ecx], eax
call fcn.00401452
mov eax, dword [ebp - 0xd0]
cmp eax, edi
je 0x412bfc
call fcn.0040f407
lea eax, [ebp - 0xc8]
call fcn.0040d0c0
push edi
push ebx
jmp 0x412882
mov eax, dword [ebp - 0xd4]
mov dword [eax], 0x80004005
jmp 0x412be8
mov byte [esi + 0x64], 1
xor ebx, ebx
jmp 0x412acd
mov dword [edi + 0x34], 3
jmp 0x412acd
mov ecx, dword [ebp - 0xd8]
mov byte [ebp - 0xca], 1
call fcn.0041041b
test al, al
jne 0x412acd
push 0x271b
call fcn.004050db
lea ecx, [ebp - 0x11c]
call fcn.0041006a
push dword [ebp - 0xd8]
lea eax, [ebp - 0x5c]
push eax
lea eax, [ebp - 0x11c]
call fcn.00401fe6
pop ecx
pop ecx
push ebx
push 1
lea esi, [ebp - 0x11c]
call fcn.00401452
lea eax, [ebp - 0x5c]
push eax
push dword [ebp + 8]
mov esi, edi
call fcn.004139ac
cmp eax, ebx
push ebx
lea esi, [ebp - 0x5c]
push 1
je 0x412cb1
mov ecx, dword [ebp - 0xd4]
mov dword [ecx], eax
call fcn.00401452
jmp 0x412a67
mov eax, dword [ebp - 0xd4]
mov dword [eax], 0x80004005
jmp 0x412ca7
mov eax, dword [ebp - 0xd8]
cmp dword [eax + 0x14], ebx
mov byte [ebp - 0xca], 1
jne 0x412acd
mov eax, dword [ebp - 0xd4]
mov dword [eax], 0x80004005
jmp 0x412aa1
mov eax, dword [ebp - 0xd4]
mov dword [eax], 0x80004005
jmp 0x412b5d
cmp eax, 4
jne 0x412dcf
mov eax, dword [ebp - 0xd8]
lea esi, [ebp - 0x20]
call fcn.00401aa6
mov ecx, esi
call fcn.0041041b
test al, al
jne 0x412d91
push 0x271b
call fcn.004050db
lea ecx, [ebp - 0x11c]
call fcn.0041006a
push dword [ebp - 0xd8]
lea eax, [ebp - 0x5c]
push eax
lea eax, [ebp - 0x11c]
call fcn.00401fe6
pop ecx
pop ecx
push ebx
push 1
lea esi, [ebp - 0x11c]
call fcn.00401452
lea eax, [ebp - 0x5c]
push eax
push dword [ebp + 8]
mov esi, edi
call fcn.004139ac
cmp eax, ebx
push ebx
push 1
lea esi, [ebp - 0x5c]
je 0x412d83
mov ecx, dword [ebp - 0xd4]
mov dword [ecx], eax
call fcn.00401452
push ebx
push 1
lea esi, [ebp - 0x20]
jmp 0x412b5d
mov eax, dword [ebp - 0xd4]
mov dword [eax], 0x80004005
jmp 0x412d73
mov ecx, dword [ebp - 0xd8]
lea eax, [ebp - 0x20]
call fcn.0040db9c
test al, al
jne 0x412dad
push 0x271d
jmp 0x412d1e
push ebx
push 1
lea esi, [ebp - 0x20]
call fcn.00401452
lea eax, [ebp - 0xc8]
call fcn.0040d0c0
mov byte [ebp - 0xc9], 1
jmp 0x412f85
cmp eax, 1
jne 0x412e78
push 0xffffffffffffffff
lea eax, [esi + 0x48]
push eax
mov eax, dword [ebp - 0xd8]
xor ebx, ebx
call fcn.004016e9
mov ecx, dword [ebp - 0xd8]
call fcn.0041041b
test al, al
jne 0x412e6d
push 0x271b
call fcn.004050db
lea ecx, [ebp - 0x11c]
call fcn.0041006a
push dword [ebp - 0xd8]
lea eax, [ebp - 0x5c]
push eax
lea eax, [ebp - 0x11c]
call fcn.00401fe6
pop ecx
pop ecx
push ebx
inc ebx
push ebx
lea esi, [ebp - 0x11c]
call fcn.00401452
lea eax, [ebp - 0x5c]
push eax
push dword [ebp + 8]
mov esi, edi
call fcn.004139ac
xor edi, edi
cmp eax, edi
push edi
lea esi, [ebp - 0x5c]
push ebx
je 0x412e5f
mov ecx, dword [ebp - 0xd4]
mov dword [ecx], eax
call fcn.00401452
jmp 0x412bfc
mov eax, dword [ebp - 0xd4]
mov dword [eax], 0x80004005
jmp 0x412e55
mov byte [esi + 0x64], 1
xor ebx, ebx
jmp 0x412db8
cmp byte [ebp - 0xca], bl
jne 0x412db8
cmp byte [esi + 0x64], bl
jne 0x412db8
push dword [ebp - 0xd8]
call fcn.0040dbab
test al, al
pop ecx
jne 0x412db8
push 0x271c
call fcn.004050db
lea ecx, [ebp - 0x11c]
call fcn.0041006a
push dword [ebp - 0xd8]
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x11c]
call fcn.00401fe6
pop ecx
pop ecx
push ebx
push 1
lea esi, [ebp - 0x11c]
call fcn.00401452
push 0x2790
call fcn.004050db
lea ecx, [ebp - 0x11c]
call fcn.0041006a
push 0xffffffffffffffff
push ebx
lea eax, [ebp - 0x11c]
lea esi, [ebp - 0x20]
call fcn.0040203b
push ebx
push 1
lea esi, [ebp - 0x11c]
call fcn.00401452
lea esi, [ebp - 0x11c]
call fcn.0040e127
push 0xffffffffffffffff
push ebx
lea esi, [ebp - 0x20]
call fcn.0040203b
push ebx
push 1
lea esi, [ebp - 0x11c]
call fcn.00401452
lea eax, [ebp - 0x20]
push eax
push dword [ebp + 8]
mov esi, edi
call fcn.004139ac
cmp eax, ebx
push ebx
lea esi, [ebp - 0x20]
push 1
jne 0x412b55
mov eax, dword [ebp - 0xd4]
mov dword [eax], ebx
jmp 0x412b5d
mov eax, dword [ebp - 0xd0]
cmp dword [eax + 0x2c], 2
jne 0x412db8
mov eax, dword [ebp - 0xd4]
mov dword [eax], ebx
lea eax, [ebp - 0xc8]
call fcn.0040d0c0
mov byte [ebp - 0xc9], bl
push ebx
push 1
lea esi, [ebp - 0x3c]
call fcn.00401452
lea esi, [ebp - 0xe8]
call fcn.00401539
mov al, byte [ebp - 0xc9]
jmp 0x41232b