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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe54
push ebx
push esi
push edi
mov ebx, eax
lea esi, [ebp - 0xdc]
mov eax, 0x485464
call fcn.00464054
cmp dword [ebx + 0x1460], 0
jl 0x4052d9
mov dword [ebx + 0x1460], 1
cmp dword [ebx + 0x1460], 0xffffffff
jne 0x4052f2
mov edx, dword [esi]
mov dword fs:[0], edx
mov eax, edx
jmp 0x406955
cmp dword [ebx + 0x1460], 0xfffffff6
jne 0x40530b
mov ecx, dword [esi]
mov dword fs:[0], ecx
mov eax, ecx
jmp 0x406955
mov edx, dword [ebx + 0x1508]
cmp edx, dword [ebx + 0x1504]
jge 0x405338
cmp byte [ebx + 0x36c], 1
jne 0x405420
mov eax, dword [ebx + 0x1508]
cmp eax, dword [ebx + 0x374]
jl 0x405420
xor edx, edx
mov dword [ebx + 0x1460], edx
cmp dword [ebx + 0x380], 0
jne 0x4053a2
mov ecx, dword [ebx + 0x2e0]
cmp byte [ecx + 0x2c], 0
je 0x40535e
cmp byte [ebx + 0x36c], 1
jne 0x405375
mov eax, ebx
call fcn.0042f7a4
mov edx, dword [esi]
mov dword fs:[0], edx
mov eax, edx
jmp 0x406955
mov ecx, dword [ebx + 0x2e0]
cmp byte [ecx + 0x2c], 1
jne 0x405420
mov edx, dword [ebx + 0x2e4]
mov eax, ebx
call fcn.004074cc
mov ecx, dword [esi]
mov dword fs:[0], ecx
mov eax, ecx
jmp 0x406955
cmp dword [ebx + 0x380], 1
jne 0x405420
mov edx, dword [ebx + 0x1330]
dec edx
cmp edx, dword [ebx + 0x37c]
jne 0x405402
mov eax, dword [ebx + 0x2e0]
cmp byte [eax + 0x2c], 0
jne 0x4053dd
mov eax, ebx
call fcn.0042f7a4
mov edx, dword [esi]
mov dword fs:[0], edx
mov eax, edx
jmp 0x406955
mov ecx, dword [ebx + 0x2e0]
cmp byte [ecx + 0x2c], 1
jne 0x405420
xor edx, edx
mov eax, ebx
call fcn.0040ab78
mov ecx, dword [esi]
mov dword fs:[0], ecx
mov eax, ecx
jmp 0x406955
mov edx, dword [ebx + 0x37c]
mov eax, ebx
inc edx
call fcn.0040ab78
mov edx, dword [esi]
mov dword fs:[0], edx
mov eax, edx
jmp 0x406955
mov eax, dword [ebx + 0x1508]
cmp eax, dword [ebx + 0x1504]
jge 0x406876
push eax
mov edx, dword [ebx + 0x354]
push edx
call fcn.00403db0
add esp, 8
mov word [esi + 0x10], 8
lea eax, [ebp - 8]
call fcn.00403630
push eax
lea eax, [ebp - 4]
inc dword [esi + 0x1c]
mov edx, dword [ebx + 0x1508]
inc edx
call fcn.0046eec0
mov edx, eax
inc dword [esi + 0x1c]
mov eax, 0x484911
pop ecx
call fcn.0046f154
lea edx, [ebp - 8]
lea eax, [ebp - 0x10]
push edx
call fcn.00403630
push eax
inc dword [esi + 0x1c]
mov edx, 0x484916
lea eax, [ebp - 0xc]
call fcn.0046ee4c
inc dword [esi + 0x1c]
lea edx, [ebp - 0xc]
pop ecx
pop eax
call fcn.0046ef48
lea edx, [ebp - 0x10]
lea eax, [ebp - 0x18]
push edx
call fcn.00403630
push eax
inc dword [esi + 0x1c]
lea eax, [ebp - 0x14]
mov edx, dword [ebx + 0x1504]
call fcn.0046eec0
mov edx, eax
inc dword [esi + 0x1c]
pop ecx
pop eax
call fcn.0046ef48
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x20]
call fcn.00403630
push eax
inc dword [esi + 0x1c]
mov edx, 0x484918
lea eax, [ebp - 0x1c]
call fcn.0046ee4c
inc dword [esi + 0x1c]
lea edx, [ebp - 0x1c]
pop ecx
pop eax
call fcn.0046ef48
lea edx, [ebp - 0x20]
lea eax, [ebp - 0x28]
push edx
call fcn.00403630
push eax
inc dword [esi + 0x1c]
mov edx, dword [ebx + 0x14e8]
push edx
mov ecx, dword [ebx + 0x1508]
inc ecx
push ecx
push ebx
lea eax, [ebp - 0x24]
call fcn.00403630
push eax
inc dword [esi + 0x1c]
call fcn.00403660
add esp, 0x10
lea edx, [ebp - 0x24]
pop ecx
pop eax
call fcn.0046ef48
lea edx, [ebp - 0x28]
lea eax, [ebp - 0x30]
push edx
call fcn.00403630
push eax
inc dword [esi + 0x1c]
mov edx, 0x484920
lea eax, [ebp - 0x2c]
call fcn.0046ee4c
inc dword [esi + 0x1c]
lea edx, [ebp - 0x2c]
pop ecx
pop eax
call fcn.0046ef48
lea edx, [ebp - 0x30]
lea eax, [ebp - 0x38]
push edx
call fcn.00403630
push eax
inc dword [esi + 0x1c]
mov edx, dword [ebx + 0x14e8]
push edx
mov ecx, dword [ebx + 0x1504]
push ecx
push ebx
lea eax, [ebp - 0x34]
call fcn.00403630
push eax
inc dword [esi + 0x1c]
call fcn.00403660
add esp, 0x10
lea edx, [ebp - 0x34]
pop ecx
pop eax
call fcn.0046ef48
lea edx, [ebp - 0x38]
mov ecx, dword [edx]
push ecx
push ebx
call fcn.00405140
add esp, 8
dec dword [esi + 0x1c]
lea eax, [ebp - 0x38]
mov edx, 2
call fcn.0046ef04
dec dword [esi + 0x1c]
lea eax, [ebp - 0x34]
mov edx, 2
call fcn.0046ef04
dec dword [esi + 0x1c]
lea eax, [ebp - 0x30]
mov edx, 2
call fcn.0046ef04
dec dword [esi + 0x1c]
lea eax, [ebp - 0x2c]
mov edx, 2
call fcn.0046ef04
dec dword [esi + 0x1c]
lea eax, [ebp - 0x28]
mov edx, 2
call fcn.0046ef04
dec dword [esi + 0x1c]
lea eax, [ebp - 0x24]
mov edx, 2
call fcn.0046ef04
dec dword [esi + 0x1c]
lea eax, [ebp - 0x20]
mov edx, 2
call fcn.0046ef04
dec dword [esi + 0x1c]
lea eax, [ebp - 0x1c]
mov edx, 2
call fcn.0046ef04
dec dword [esi + 0x1c]
lea eax, [ebp - 0x18]
mov edx, 2
call fcn.0046ef04
dec dword [esi + 0x1c]
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.0046ef04
dec dword [esi + 0x1c]
lea eax, [ebp - 0x10]
mov edx, 2
call fcn.0046ef04
dec dword [esi + 0x1c]
lea eax, [ebp - 0xc]
mov edx, 2
call fcn.0046ef04
dec dword [esi + 0x1c]
lea eax, [ebp - 8]
mov edx, 2
call fcn.0046ef04
dec dword [esi + 0x1c]
lea eax, [ebp - 4]
mov edx, 2
call fcn.0046ef04
mov ecx, dword [sym.Project1.exe__ControlForm]
mov eax, dword [ecx]
mov eax, dword [eax + 0x300]
mov edx, dword [eax]
call dword [edx + 0x78]
mov edx, dword [ebx + 0x1508]
inc edx
mov eax, dword [sym.Project1.exe__ControlForm]
mov eax, dword [eax]
call fcn.0040d01c
mov word [esi + 0x10], 0x14
lea eax, [ebp - 0x44]
call fcn.00403630
push eax
inc dword [esi + 0x1c]
mov edx, 0x484922
lea eax, [ebp - 0x40]
call fcn.0046ee4c
inc dword [esi + 0x1c]
lea edx, [ebp - 0x40]
push edx
mov ecx, dword [ebx + 0x14e8]
push ecx
mov eax, dword [ebx + 0x1508]
push eax
push ebx
lea eax, [ebp - 0x3c]
call fcn.00403630
push eax
inc dword [esi + 0x1c]
call fcn.00403660
add esp, 0x10
lea eax, [ebp - 0x3c]
pop edx
pop ecx
call fcn.0046ef48
lea eax, [ebp - 0x44]
push eax
lea eax, [ebp - 0x4c]
call fcn.00403630
push eax
inc dword [esi + 0x1c]
mov edx, dword [ebx + 0x14e8]
push edx
mov ecx, dword [ebx + 0x1504]
push ecx
push ebx
lea eax, [ebp - 0x48]
call fcn.00403630
push eax
inc dword [esi + 0x1c]
call fcn.00403660
add esp, 0x10
lea edx, [ebp - 0x48]
pop ecx
pop eax
call fcn.0046ef48
lea edx, [ebp - 0x4c]
lea eax, [ebp - 0x54]
push edx
call fcn.00403630
push eax
inc dword [esi + 0x1c]
mov edx, 0x484924
lea eax, [ebp - 0x50]
call fcn.0046ee4c
inc dword [esi + 0x1c]
lea edx, [ebp - 0x50]
pop ecx
pop eax
call fcn.0046ef48
lea edx, [ebp - 0x54]
lea eax, [ebp - 0x5c]
push edx
call fcn.00403630
push eax
inc dword [esi + 0x1c]
lea edx, [ebx + 0x13a8]
lea eax, [ebp - 0x58]
call fcn.0046ee4c
mov edx, eax
inc dword [esi + 0x1c]
pop ecx
pop eax
call fcn.0046ef48
lea edx, [ebp - 0x5c]
mov eax, ebx
mov edx, dword [edx]
call fcn.0043b3b4
dec dword [esi + 0x1c]
lea eax, [ebp - 0x5c]
mov edx, 2
call fcn.0046ef04
dec dword [esi + 0x1c]
lea eax, [ebp - 0x58]
mov edx, 2
call fcn.0046ef04
dec dword [esi + 0x1c]
lea eax, [ebp - 0x54]
mov edx, 2
call fcn.0046ef04
dec dword [esi + 0x1c]
lea eax, [ebp - 0x50]
mov edx, 2
call fcn.0046ef04
dec dword [esi + 0x1c]
lea eax, [ebp - 0x4c]
mov edx, 2
call fcn.0046ef04
dec dword [esi + 0x1c]
lea eax, [ebp - 0x48]
mov edx, 2
call fcn.0046ef04
dec dword [esi + 0x1c]
lea eax, [ebp - 0x44]
mov edx, 2
call fcn.0046ef04
dec dword [esi + 0x1c]
lea eax, [ebp - 0x40]
mov edx, 2
call fcn.0046ef04
dec dword [esi + 0x1c]
lea eax, [ebp - 0x3c]
mov edx, 2
call fcn.0046ef04
xor ecx, ecx
xor eax, eax
mov dword [ebx + 0x150c], ecx
mov dword [ebx + 0x1514], eax
cmp dword [ebx + 0x14f8], 1
jne 0x405904
mov edx, dword [ebx + 0x1474]
mov dword [ebx + 0x146c], edx
mov ecx, dword [ebx + 0x1478]
mov dword [ebx + 0x1470], ecx
mov edi, dword [ebx + 0x14cc]
mov eax, edi
call fcn.00452260
mov edx, eax
mov eax, edi
add edx, 0xfffffff8
call fcn.00452270
mov eax, dword [ebx + 0x14cc]
lea edx, [ebp - 0xe4]
mov ecx, 4
mov edi, dword [eax]
call dword [edi + 4]
mov eax, dword [ebx + 0x14cc]
lea edx, [ebp - 0xe4]
mov ecx, 4
mov edi, dword [eax]
call dword [edi + 4]
mov eax, dword [ebx + 0x14cc]
lea edx, [ebp - 0xe4]
mov ecx, 4
mov edi, dword [eax]
call dword [edi + 4]
cmp dword [ebp - 0xe4], 0
jle 0x405904
mov eax, dword [ebx + 0x1468]
call fcn.004525f4
mov ecx, dword [ebp - 0xe4]
mov edx, dword [ebx + 0x14cc]
mov eax, dword [ebx + 0x1468]
call fcn.00452324
xor edx, edx
mov eax, dword [ebx + 0x1468]
call fcn.00452270
mov edx, dword [ebx + 0x1468]
mov eax, dword [ebx + 0x147c]
mov ecx, dword [eax]
call dword [ecx + 0x50]
cmp dword [ebx + 0x1508], 0
jle 0x405acc
mov eax, dword [ebx + 0x14cc]
lea edx, [ebp - 0xe0]
mov ecx, 4
mov edi, dword [eax]
call dword [edi + 4]
cmp dword [ebp - 0xe0], 0
jle 0x405c28
cmp dword [ebp - 0xe0], 0
jle 0x405c28
mov eax, dword [ebx + 0x14cc]
lea edx, [ebp - 0xfc]
mov ecx, 0x10
mov edi, dword [eax]
call dword [edi + 4]
mov dl, 1
mov eax, dword [0x41ec10]
call fcn.00424904
mov dword [ebx + 0x14bc], eax
cmp dword [ebx + 0x13c0], 0
jne 0x4059f8
mov eax, dword [ebx + 0x14cc]
lea edx, [ebp - 0xe4]
mov ecx, 4
mov edi, dword [eax]
call dword [edi + 4]
mov ecx, dword [ebp - 0xe4]
mov edx, dword [ebx + 0x14cc]
mov eax, dword [ebx + 0x14d0]
call fcn.00452324
mov eax, dword [ebp - 0xe4]
push eax
mov edx, dword [ebx + 0x14d0]
push edx
push ebx
call fcn.0040695c
mov eax, dword [ebx + 0x14d0]
add esp, 0xc
xor ecx, ecx
xor edx, edx
mov edi, dword [eax]
call dword [edi + 0xc]
mov edx, dword [ebx + 0x14d0]
mov eax, dword [ebx + 0x14b4]
mov ecx, dword [eax]
call dword [ecx + 0x50]
mov eax, dword [ebx + 0x14d0]
call fcn.004525f4
mov edx, dword [ebx + 0x14b4]
mov eax, dword [ebx + 0x14bc]
mov ecx, dword [eax]
call dword [ecx + 8]
jmp 0x405a56
cmp dword [ebx + 0x13c0], 1
jl 0x405a56
mov eax, dword [ebx + 0x14cc]
lea edx, [ebp - 0xe4]
mov ecx, 4
mov edi, dword [eax]
call dword [edi + 4]
mov eax, dword [ebp - 0xf0]
sub eax, dword [ebp - 0xf8]
push eax
mov edx, dword [ebp - 0xf4]
sub edx, dword [ebp - 0xfc]
push edx
mov ecx, dword [ebx + 0x13c0]
push ecx
mov eax, dword [ebp - 0xe4]
push eax
mov edx, dword [ebx + 0x14cc]
push edx
mov ecx, dword [ebx + 0x14bc]
push ecx
push ebx
call fcn.004020cc
add esp, 0x1c
mov eax, dword [ebx + 0x14bc]
push eax
mov eax, dword [ebx + 0x14b8]
call fcn.00424e70
mov ecx, dword [ebp - 0xf8]
mov edx, dword [ebp - 0xfc]
call fcn.00420594
mov edi, dword [ebx + 0x14bc]
mov dword [ebp - 0x64], edi
test edi, edi
je 0x405aa4
mov eax, dword [edi]
mov dword [ebp - 0x60], eax
mov word [esi + 0x10], 0x2c
mov edx, 3
mov eax, dword [ebp - 0x64]
mov ecx, dword [eax]
call dword [ecx - 4]
mov word [esi + 0x10], 0x20
mov eax, dword [ebx + 0x14cc]
lea edx, [ebp - 0xe0]
mov ecx, 4
mov edi, dword [eax]
call dword [edi + 4]
cmp dword [ebp - 0xe0], 0
jg 0x405941
jmp 0x405c28
cmp dword [ebx + 0x1508], 0
jne 0x405c28
mov dl, 1
mov eax, dword [0x41ec10]
call fcn.00424904
mov dword [ebx + 0x14bc], eax
cmp dword [ebx + 0x13c0], 0
jne 0x405b7a
mov eax, dword [ebx + 0x14cc]
lea edx, [ebp - 0xe4]
mov ecx, 4
mov edi, dword [eax]
call dword [edi + 4]
mov ecx, dword [ebp - 0xe4]
mov edx, dword [ebx + 0x14cc]
mov eax, dword [ebx + 0x14d0]
call fcn.00452324
mov eax, dword [ebp - 0xe4]
push eax
mov edx, dword [ebx + 0x14d0]
push edx
push ebx
call fcn.0040695c
mov eax, dword [ebx + 0x14d0]
add esp, 0xc
xor ecx, ecx
xor edx, edx
mov edi, dword [eax]
call dword [edi + 0xc]
mov edx, dword [ebx + 0x14d0]
mov eax, dword [ebx + 0x14b4]
mov ecx, dword [eax]
call dword [ecx + 0x50]
mov eax, dword [ebx + 0x14d0]
call fcn.004525f4
mov edx, dword [ebx + 0x14b4]
mov eax, dword [ebx + 0x14bc]
mov ecx, dword [eax]
call dword [ecx + 8]
jmp 0x405bcc
cmp dword [ebx + 0x13c0], 1
jl 0x405bcc
mov eax, dword [ebx + 0x14cc]
lea edx, [ebp - 0xe4]
mov ecx, 4
mov edi, dword [eax]
call dword [edi + 4]
mov eax, dword [ebx + 0x14dc]
push eax
mov edx, dword [ebx + 0x14d8]
push edx
mov ecx, dword [ebx + 0x13c0]
push ecx
mov eax, dword [ebp - 0xe4]
push eax
mov edx, dword [ebx + 0x14cc]
push edx
mov ecx, dword [ebx + 0x14bc]
push ecx
push ebx
call fcn.004020cc
add esp, 0x1c
mov eax, dword [ebx + 0x14bc]
push eax
mov eax, dword [ebx + 0x14b8]
call fcn.00424e70
xor ecx, ecx
xor edx, edx
call fcn.00420594
mov edi, dword [ebx + 0x14bc]
mov dword [ebp - 0x6c], edi
test edi, edi
je 0x405c12
mov eax, dword [edi]
mov dword [ebp - 0x68], eax
mov word [esi + 0x10], 0x44
mov edx, 3
mov eax, dword [ebp - 0x6c]
mov ecx, dword [eax]
call dword [ecx - 4]
mov word [esi + 0x10], 0x38
mov eax, dword [ebx + 0x14cc]
lea edx, [ebp - 0xe0]
mov ecx, 4
mov edi, dword [eax]
call dword [edi + 4]
cmp byte [ebx + 0x14ac], 0
jne 0x405c9c
mov word [esi + 0x10], 0x50
mov edx, 0x484466
lea eax, [ebp - 0x70]
call fcn.0046ee4c
inc dword [esi + 0x1c]
mov ecx, dword [eax]
push ecx
mov eax, dword [ebx + 0x14b8]
mov edx, dword [eax]
call dword [edx + 0x20]
sar eax, 1
jns 0x405c5c
adc eax, 0
add eax, 0xffffffec
push eax
mov eax, dword [ebx + 0x14b8]
mov edx, dword [eax]
call dword [edx + 0x2c]
sar eax, 1
jns 0x405c72
adc eax, 0
add eax, 0xffffff6a
push eax
mov eax, dword [ebx + 0x14b8]
call fcn.00424e70
pop edx
pop ecx
call fcn.0046ee44
dec dword [esi + 0x1c]
lea eax, [ebp - 0x70]
mov edx, 2
call fcn.0046ef04
jmp 0x405cf9
mov word [esi + 0x10], 0x5c
mov edx, 0x484926
lea eax, [ebp - 0x74]
call fcn.0046ee4c
inc dword [esi + 0x1c]
lea edx, [ebp - 0x74]
lea eax, [ebx + 0x1488]
call fcn.0046efec
push eax
dec dword [esi + 0x1c]
lea eax, [ebp - 0x74]
mov edx, 2
call fcn.0046ef04
pop ecx
test cl, cl
je 0x405cf9
mov eax, dword [ebx + 0x1488]
push eax
mov eax, dword [ebx + 0x14b8]
call fcn.00424e70
mov ecx, dword [ebx + 0x1484]
mov edx, dword [ebx + 0x1480]
call fcn.0046ee44
cmp dword [ebx + 0x14f8], 1
jne 0x405d46
mov eax, dword [ebx + 0x14cc]
lea edx, [ebp - 0xe4]
mov ecx, 4
mov edi, dword [eax]
call dword [edi + 4]
fild dword [ebp - 0xe4]
lea edx, [ebp - 0xe4]
mov ecx, 4
fstp dword [ebx + 0x1474]
mov eax, dword [ebx + 0x14cc]
mov edi, dword [eax]
call dword [edi + 4]
fild dword [ebp - 0xe4]
fstp dword [ebx + 0x1478]
xor eax, eax
mov dword [ebx + 0x1518], eax
cmp dword [ebx + 0x13cc], 1
jne 0x405f4b
xor edx, edx
mov dword [ebp - 0xe4], edx
jmp 0x405f2a
mov word [esi + 0x10], 0x68
lea eax, [ebp - 0x78]
call fcn.00403630
inc dword [esi + 0x1c]
mov ecx, eax
mov eax, dword [ebx + 0x1454]
mov edx, dword [ebp - 0xe4]
shl edx, 3
mov edi, dword [eax]
call dword [edi + 0xc]
lea eax, [ebp - 0x78]
push eax
lea eax, [ebp - 0x7c]
mov edx, dword [ebx + 0x1508]
call fcn.0046eec0
mov edx, eax
inc dword [esi + 0x1c]
pop eax
call fcn.0046efd4
push eax
dec dword [esi + 0x1c]
lea eax, [ebp - 0x78]
mov edx, 2
call fcn.0046ef04
dec dword [esi + 0x1c]
lea eax, [ebp - 0x7c]
mov edx, 2
call fcn.0046ef04
pop ecx
test cl, cl
je 0x405f24
mov dword [ebx + 0x1518], 1
jmp 0x405e7f
inc dword [ebp - 0xe4]
mov word [esi + 0x10], 0x80
lea eax, [ebp - 0x88]
call fcn.00403630
inc dword [esi + 0x1c]
mov ecx, eax
mov eax, dword [ebx + 0x1454]
mov edx, dword [ebp - 0xe4]
shl edx, 3
add edx, 3
mov edi, dword [eax]
call dword [edi + 0xc]
lea eax, [ebp - 0x88]
push eax
lea eax, [ebp - 0x8c]
mov edx, 3
call fcn.0046eec0
inc dword [esi + 0x1c]
lea edx, [ebp - 0x8c]
pop eax
call fcn.0046efd4
push eax
dec dword [esi + 0x1c]
lea eax, [ebp - 0x8c]
mov edx, 2
call fcn.0046ef04
dec dword [esi + 0x1c]
lea eax, [ebp - 0x88]
mov edx, 2
call fcn.0046ef04
pop ecx
test cl, cl
je 0x405f4b
mov eax, dword [ebp - 0xe4]
mov dword [ebp - 0xe4], eax
jmp 0x405f4b
mov eax, dword [ebx + 0x1454]
mov edx, dword [eax]
call dword [edx + 0x14]
test eax, eax
jns 0x405e91
add eax, 7
sar eax, 3
mov ecx, dword [ebp - 0xe4]
inc ecx
cmp eax, ecx
jle 0x405f4b
mov word [esi + 0x10], 0x74
lea eax, [ebp - 0x80]
call fcn.00403630
inc dword [esi + 0x1c]
mov ecx, eax
mov eax, dword [ebx + 0x1454]
mov edx, dword [ebp - 0xe4]
shl edx, 3
add edx, 8
mov edi, dword [eax]
call dword [edi + 0xc]
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp - 0x84]
mov edx, dword [ebx + 0x1508]
call fcn.0046eec0
mov edx, eax
inc dword [esi + 0x1c]
pop eax
call fcn.0046efd4
test al, al
lea eax, [ebp - 0x80]
setne cl
and ecx, 1
mov edx, 2
push ecx
dec dword [esi + 0x1c]
call fcn.0046ef04
dec dword [esi + 0x1c]
lea eax, [ebp - 0x84]
mov edx, 2
call fcn.0046ef04
pop ecx
test ecx, ecx
jne 0x405de5
jmp 0x405f4b
inc dword [ebp - 0xe4]
mov eax, dword [ebx + 0x1454]
mov edx, dword [eax]
call dword [edx + 0x14]
test eax, eax
jns 0x405f3c
add eax, 7
sar eax, 3
cmp eax, dword [ebp - 0xe4]
jg 0x405d68
cmp byte [ebx + 0x151c], 0
jne 0x4064d8
cmp dword [ebx + 0x14f8], 1
jne 0x4060fd
mov ecx, dword [ebx + 0x2d0]
mov eax, dword [ecx + 0x38]
sar eax, 1
jns 0x405f75
adc eax, 0
add eax, dword [ebx + 0x358]
mov dword [ebp - 0x1a4], eax
fild dword [ebp - 0x1a4]
fsubr dword [ebx + 0x146c]
add esp, 0xfffffff8
fstp qword [esp]
call fcn.00467f7c
add esp, 8
mov edx, dword [ebx + 0x2d0]
mov edi, dword [edx + 0x38]
mov eax, edi
mov ecx, 3
cdq
idiv ecx
mov dword [ebp - 0x1a8], eax
fild dword [ebp - 0x1a8]
fcompp
fnstsw ax
sahf
jae 0x405fe5
sar edi, 1
jns 0x405fc8
adc edi, 0
mov dword [ebp - 0x1ac], edi
fild dword [ebp - 0x1ac]
fsubr dword [ebx + 0x146c]
call fcn.00467fa4
mov dword [ebx + 0x358], eax
mov edx, dword [ebx + 0x2d0]
mov ecx, dword [edx + 0x3c]
sar ecx, 1
jns 0x405ff5
adc ecx, 0
add ecx, dword [ebx + 0x35c]
mov dword [ebp - 0x1a4], ecx
fild dword [ebp - 0x1a4]
fsubr dword [ebx + 0x1470]
add esp, 0xfffffff8
fstp qword [esp]
call fcn.00467f7c
add esp, 8
mov eax, dword [ebx + 0x2d0]
mov edi, dword [eax + 0x3c]
mov eax, edi
mov ecx, 3
cdq
idiv ecx
mov dword [ebp - 0x1a8], eax
fild dword [ebp - 0x1a8]
fcompp
fnstsw ax
sahf
jae 0x406065
sar edi, 1
jns 0x406048
adc edi, 0
mov dword [ebp - 0x1ac], edi
fild dword [ebp - 0x1ac]
fsubr dword [ebx + 0x1470]
call fcn.00467fa4
mov dword [ebx + 0x35c], eax
cmp dword [ebx + 0x358], 0
jge 0x406078
xor edx, edx
mov dword [ebx + 0x358], edx
jmp 0x4060b0
mov eax, dword [ebx + 0x14b8]
mov edx, dword [eax]
call dword [edx + 0x2c]
mov ecx, dword [ebx + 0x2d0]
mov edx, dword [ecx + 0x38]
add edx, dword [ebx + 0x358]
cmp eax, edx
jge 0x4060b0
mov eax, dword [ebx + 0x14b8]
mov ecx, dword [eax]
call dword [ecx + 0x2c]
mov edx, dword [ebx + 0x2d0]
sub eax, dword [edx + 0x38]
mov dword [ebx + 0x358], eax
cmp dword [ebx + 0x35c], 0
jge 0x4060c3
xor eax, eax
mov dword [ebx + 0x35c], eax
jmp 0x40610d
mov eax, dword [ebx + 0x14b8]
mov edx, dword [eax]
call dword [edx + 0x20]
mov ecx, dword [ebx + 0x2d0]
mov edx, dword [ecx + 0x3c]
add edx, dword [ebx + 0x35c]
cmp eax, edx
jge 0x40610d
mov eax, dword [ebx + 0x14b8]
mov ecx, dword [eax]
call dword [ecx + 0x20]
mov edx, dword [ebx + 0x2d0]
sub eax, dword [edx + 0x3c]
mov dword [ebx + 0x35c], eax
jmp 0x40610d
xor eax, eax
xor ecx, ecx
mov dword [ebx + 0x358], eax
mov dword [ebx + 0x35c], ecx
mov eax, dword [ebx + 0x14b8]
push eax
mov eax, dword [ebx + 0x2d0]
call fcn.00434fd8
xor ecx, ecx
xor edx, edx
sub ecx, dword [ebx + 0x35c]
sub edx, dword [ebx + 0x358]
call fcn.00420594
cmp dword [ebx + 0x13d0], 1
jne 0x4063dc
cmp dword [ebx + 0x1518], 1
jne 0x4063dc
cmp byte [ebx + 0x151c], 0
jne 0x4063dc
mov eax, dword [ebx + 0x2d0]
call fcn.00434fd8
mov eax, dword [eax + 0x14]
mov dl, 1
call fcn.004203b8
mov eax, dword [ebx + 0x2d0]
call fcn.00434fd8
mov eax, dword [eax + 0x10]
mov edx, 2
call fcn.004200c4
mov word [esi + 0x10], 0x8c
lea eax, [ebp - 0x90]
call fcn.00403630
inc dword [esi + 0x1c]
mov ecx, eax
mov eax, dword [ebx + 0x1454]
mov edx, dword [ebp - 0xe4]
shl edx, 3
inc edx
mov edi, dword [eax]
call dword [edi + 0xc]
lea eax, [ebp - 0x90]
call fcn.0046f104
mov dword [ebp - 0xe8], eax
dec dword [esi + 0x1c]
lea eax, [ebp - 0x90]
mov edx, 2
call fcn.0046ef04
mov word [esi + 0x10], 0x98
lea eax, [ebp - 0x94]
call fcn.00403630
inc dword [esi + 0x1c]
mov ecx, eax
mov eax, dword [ebx + 0x1454]
mov edx, dword [ebp - 0xe4]
shl edx, 3
add edx, 2
mov edi, dword [eax]
call dword [edi + 0xc]
lea eax, [ebp - 0x94]
call fcn.0046f104
mov dword [ebp - 0xec], eax
dec dword [esi + 0x1c]
lea eax, [ebp - 0x94]
mov edx, 2
call fcn.0046ef04
mov ecx, dword [ebx + 0x358]
sub dword [ebp - 0xe8], ecx
mov eax, dword [ebx + 0x35c]
sub dword [ebp - 0xec], eax
mov word [esi + 0x10], 0xa4
lea eax, [ebp - 0x98]
call fcn.00403630
inc dword [esi + 0x1c]
mov ecx, eax
mov eax, dword [ebx + 0x1454]
mov edx, dword [ebp - 0xe4]
shl edx, 3
add edx, 3
mov edi, dword [eax]
call dword [edi + 0xc]
lea eax, [ebp - 0x98]
push eax
lea eax, [ebp - 0x9c]
mov edx, 2
call fcn.0046eec0
inc dword [esi + 0x1c]
lea edx, [ebp - 0x9c]
pop eax
call fcn.0046efd4
push eax
dec dword [esi + 0x1c]
lea eax, [ebp - 0x9c]
mov edx, 2
call fcn.0046ef04
dec dword [esi + 0x1c]
lea eax, [ebp - 0x98]
mov edx, 2
call fcn.0046ef04
pop ecx
test cl, cl
je 0x4062d9
mov eax, dword [ebx + 0x2d0]
call fcn.00434fd8
mov eax, dword [eax + 0x10]
mov edx, 0xffff
call fcn.0041ffb8
jmp 0x4062f1
mov eax, dword [ebx + 0x2d0]
call fcn.00434fd8
mov eax, dword [eax + 0x10]
mov edx, 0xff
call fcn.0041ffb8
mov word [esi + 0x10], 0xb0
lea eax, [ebp - 0xa0]
call fcn.00403630
inc dword [esi + 0x1c]
mov ecx, eax
mov eax, dword [ebx + 0x1454]
mov edx, dword [ebp - 0xe4]
shl edx, 3
add edx, 3
mov edi, dword [eax]
call dword [edi + 0xc]
lea eax, [ebp - 0xa0]
push eax
lea eax, [ebp - 0xa4]
mov edx, 3
call fcn.0046eec0
inc dword [esi + 0x1c]
lea edx, [ebp - 0xa4]
pop eax
call fcn.0046efd4
push eax
dec dword [esi + 0x1c]
lea eax, [ebp - 0xa4]
mov edx, 2
call fcn.0046ef04
dec dword [esi + 0x1c]
lea eax, [ebp - 0xa0]
mov edx, 2
call fcn.0046ef04
pop ecx
test cl, cl
je 0x4063a6
mov eax, dword [ebp - 0xe8]
add eax, 0x14
push eax
mov edx, dword [ebp - 0xec]
add edx, 0x14
push edx
mov eax, dword [ebx + 0x2d0]
call fcn.00434fd8
mov ecx, dword [ebp - 0xec]
add ecx, 0xffffffec
mov edx, dword [ebp - 0xe8]
add edx, 0xffffffec
call fcn.00420640
mov eax, dword [ebp - 0xe8]
add eax, 0xf
push eax
mov edx, dword [ebp - 0xec]
add edx, 0xf
push edx
mov eax, dword [ebx + 0x2d0]
call fcn.00434fd8
mov ecx, dword [ebp - 0xec]
add ecx, 0xfffffff1
mov edx, dword [ebp - 0xe8]
add edx, 0xfffffff1
call fcn.00420640
cmp dword [ebx + 0x14f8], 1
jne 0x406731
fild dword [ebx + 0x358]
fsubr dword [ebx + 0x146c]
call fcn.00467fa4
mov dword [ebp - 0xe8], eax
fild dword [ebx + 0x35c]
fsubr dword [ebx + 0x1470]
call fcn.00467fa4
mov dword [ebp - 0xec], eax
mov eax, dword [ebx + 0x14c0]
mov edx, dword [eax]
call dword [edx + 0x20]
add eax, dword [ebp - 0xec]
push eax
mov eax, dword [ebx + 0x14c0]
mov edx, dword [eax]
call dword [edx + 0x2c]
add eax, dword [ebp - 0xe8]
push eax
mov ecx, dword [ebp - 0xec]
push ecx
mov eax, dword [ebp - 0xe8]
push eax
lea edx, [ebp - 0x180]
push edx
call fcn.00405104
add esp, 0x14
push eax
mov eax, dword [ebx + 0x14c0]
mov edx, dword [eax]
call dword [edx + 0x20]
push eax
mov eax, dword [ebx + 0x14c0]
mov edx, dword [eax]
call dword [edx + 0x2c]
push eax
push 0
push 0
lea ecx, [ebp - 0x170]
push ecx
call fcn.00405104
add esp, 0x14
push eax
mov eax, dword [ebx + 0x2d0]
call fcn.00434fd8
push eax
mov eax, dword [ebx + 0x14c0]
call fcn.00424e70
pop ecx
pop edx
call fcn.0042050c
mov eax, dword [ebx + 0x147c]
call fcn.0042647c
push eax
mov edx, dword [ebp - 0xec]
push edx
mov ecx, dword [ebp - 0xe8]
push ecx
mov eax, dword [ebx + 0x2d0]
call fcn.00434fd8
call fcn.00420aa8
push eax
call sub.USER32.DLL_DrawIcon
jmp 0x406731
cmp dword [ebx + 0x14f8], 1
jne 0x4065d7
mov eax, dword [ebx + 0x14c0]
mov edx, dword [eax]
call dword [edx + 0x20]
mov dword [ebp - 0x1a4], eax
fild dword [ebp - 0x1a4]
fadd dword [ebx + 0x1470]
call fcn.00467fa4
push eax
mov eax, dword [ebx + 0x14c0]
mov edx, dword [eax]
call dword [edx + 0x2c]
mov dword [ebp - 0x1a8], eax
fild dword [ebp - 0x1a8]
fadd dword [ebx + 0x146c]
call fcn.00467fa4
push eax
fld dword [ebx + 0x1470]
call fcn.00467fa4
push eax
fld dword [ebx + 0x146c]
call fcn.00467fa4
push eax
lea edx, [ebp - 0x1a0]
push edx
call fcn.00405104
add esp, 0x14
push eax
mov eax, dword [ebx + 0x14c0]
mov edx, dword [eax]
call dword [edx + 0x20]
push eax
mov eax, dword [ebx + 0x14c0]
mov edx, dword [eax]
call dword [edx + 0x2c]
push eax
push 0
push 0
lea ecx, [ebp - 0x190]
push ecx
call fcn.00405104
add esp, 0x14
push eax
mov eax, dword [ebx + 0x14b8]
call fcn.00424e70
push eax
mov eax, dword [ebx + 0x14c0]
call fcn.00424e70
pop ecx
pop edx
call fcn.0042050c
mov eax, dword [ebx + 0x147c]
call fcn.0042647c
push eax
fld dword [ebx + 0x1470]
call fcn.00467fa4
push eax
fld dword [ebx + 0x146c]
call fcn.00467fa4
push eax
mov eax, dword [ebx + 0x14b8]
call fcn.00424e70
call fcn.00420aa8
push eax
call sub.USER32.DLL_DrawIcon
mov edx, dword [ebx + 0x145c]
imul edx, dword [ebx + 0x14e8]
cmp edx, 0x3e8
jge 0x40664a
cmp dword [ebx + 0x1458], 2
jge 0x406681
mov eax, dword [ebx + 0x2d0]
call fcn.00434fd8
call fcn.00420aa8
push eax
call sub.GDI32.DLL_GetStretchBltMode
cmp eax, 4
je 0x406681
push 4
mov eax, dword [ebx + 0x2d0]
call fcn.00434fd8
call fcn.00420aa8
push eax
call sub.GDI32.DLL_SetStretchBltMode
push 0
push 0
push 0
mov eax, dword [ebx + 0x2d0]
call fcn.00434fd8
call fcn.00420aa8
push eax
call sub.GDI32.DLL_SetBrushOrgEx
jmp 0x406681
inc dword [ebx + 0x1458]
mov eax, dword [ebx + 0x2d0]
call fcn.00434fd8
call fcn.00420aa8
push eax
call sub.GDI32.DLL_GetStretchBltMode
dec eax
je 0x406681
push 1
mov eax, dword [ebx + 0x2d0]
call fcn.00434fd8
call fcn.00420aa8
push eax
call sub.GDI32.DLL_SetStretchBltMode
push 0xcc0020
mov eax, dword [ebx + 0x14b8]
mov edx, dword [eax]
call dword [edx + 0x20]
push eax
mov eax, dword [ebx + 0x14b8]
mov edx, dword [eax]
call dword [edx + 0x2c]
push eax
push 0
push 0
mov eax, dword [ebx + 0x14b8]
call fcn.00424e70
call fcn.00420aa8
push eax
mov edi, dword [ebx + 0x2d0]
mov eax, dword [edi + 0x3c]
push eax
mov edx, dword [edi + 0x38]
push edx
push 0
push 0
mov eax, dword [ebx + 0x2d0]
call fcn.00434fd8
call fcn.00420aa8
push eax
call sub.GDI32.DLL_StretchBlt
push 0
push 0
mov eax, dword [ebx + 0x2d0]
call fcn.00434fd8
or ecx, 0xffffffff
or edx, 0xffffffff
call fcn.00420788
cmp dword [ebx + 0x14f8], 1
jne 0x406731
mov eax, dword [ebx + 0x14c0]
push eax
mov eax, dword [ebx + 0x14b8]
call fcn.00424e70
push eax
fld dword [ebx + 0x1470]
call fcn.00467fa4
push eax
fld dword [ebx + 0x146c]
call fcn.00467fa4
mov edx, eax
pop ecx
pop eax
call fcn.00420594
cmp dword [ebx + 0x1394], 1
jne 0x406870
mov word [esi + 0x10], 0xbc
lea eax, [ebp - 0xb0]
call fcn.00403630
push eax
inc dword [esi + 0x1c]
mov edx, 0x484927
lea eax, [ebp - 0xac]
call fcn.0046ee4c
inc dword [esi + 0x1c]
lea edx, [ebp - 0xac]
push edx
mov ecx, dword [ebx + 0x14e8]
push ecx
mov eax, dword [ebx + 0x1508]
inc eax
push eax
push ebx
lea eax, [ebp - 0xa8]
call fcn.00403630
push eax
inc dword [esi + 0x1c]
call fcn.00403660
add esp, 0x10
lea eax, [ebp - 0xa8]
pop edx
pop ecx
call fcn.0046ef48
lea eax, [ebp - 0xb0]
push eax
lea eax, [ebp - 0xb8]
call fcn.00403630
push eax
inc dword [esi + 0x1c]
mov edx, dword [ebx + 0x14e8]
push edx
mov ecx, dword [ebx + 0x1504]
push ecx
push ebx
lea eax, [ebp - 0xb4]
call fcn.00403630
push eax
inc dword [esi + 0x1c]
call fcn.00403660
add esp, 0x10
lea edx, [ebp - 0xb4]
pop ecx
pop eax
call fcn.0046ef48
lea edx, [ebp - 0xb8]
mov ecx, dword [edx]
push ecx
mov eax, dword [ebx + 0x2d0]
call fcn.00434fd8
mov edx, dword [ebx + 0x2d0]
mov edx, dword [edx + 0x38]
add edx, 0xffffff9c
xor ecx, ecx
call fcn.0046ee44
dec dword [esi + 0x1c]
lea eax, [ebp - 0xb8]
mov edx, 2
call fcn.0046ef04
dec dword [esi + 0x1c]
lea eax, [ebp - 0xb4]
mov edx, 2
call fcn.0046ef04
dec dword [esi + 0x1c]
lea eax, [ebp - 0xb0]
mov edx, 2
call fcn.0046ef04
dec dword [esi + 0x1c]
lea eax, [ebp - 0xac]
mov edx, 2
call fcn.0046ef04
dec dword [esi + 0x1c]
lea eax, [ebp - 0xa8]
mov edx, 2
call fcn.0046ef04
inc dword [ebx + 0x1508]
mov eax, dword [ebx + 0x1510]
xor ecx, ecx
sub eax, dword [ebx + 0x150c]
dec eax
mov dword [ebx + 0x1514], eax
xor eax, eax
mov dword [ebx + 0x150c], ecx
mov dword [ebx + 0x1460], eax
cmp byte [ebx + 0x14ae], 1
jne 0x40694c
mov eax, 0x3e8
cdq
idiv dword [ebx + 0x14e8]
mov ecx, eax
mov eax, dword [ebx + 0x1508]
add ecx, ecx
cdq
lea ecx, [ecx + ecx*4]
idiv ecx
dec edx
jne 0x40694c
mov ecx, dword [ebx + 0x31c]
push ecx
call fcn.00406a80
pop ecx
mov edx, dword [ebx + 0x1508]
dec edx
imul edx, dword [ebx + 0x14e8]
sub eax, edx
mov dword [ebp - 0xe4], eax
mov ecx, dword [ebx + 0x14e8]
mov eax, ecx
add eax, eax
cmp eax, dword [ebp - 0xe4]
jge 0x40691b
cmp dword [ebp - 0xe4], 0x1388
jge 0x40691b
mov eax, dword [ebp - 0xe4]
cdq
idiv ecx
mov dword [ebx + 0x145c], eax
jmp 0x40694c
mov ecx, dword [ebx + 0x14e8]
mov eax, ecx
add eax, eax
xor edx, edx
sub edx, eax
cmp edx, dword [ebp - 0xe4]
jle 0x40694c
cmp dword [ebp - 0xe4], 0xffffec78
jle 0x40694c
mov eax, dword [ebp - 0xe4]
cdq
idiv ecx
mov dword [ebx + 0x145c], eax
mov ecx, dword [esi]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret