Function at 0x4052a0
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, 0x48545c
call fcn.00463f54
cmp dword [ebx + 0x1460], 0
jl 0x4052d1
mov dword [ebx + 0x1460], 1
cmp dword [ebx + 0x1460], 0xffffffff
jne 0x4052ea
mov edx, dword [esi]
mov dword fs:[0], edx
mov eax, edx
jmp 0x40689a
cmp dword [ebx + 0x1460], 0xfffffff6
jne 0x405303
mov ecx, dword [esi]
mov dword fs:[0], ecx
mov eax, ecx
jmp 0x40689a
mov edx, dword [ebx + 0x1508]
cmp edx, dword [ebx + 0x1504]
jge 0x405330
cmp byte [ebx + 0x36c], 1
jne 0x405418
mov eax, dword [ebx + 0x1508]
cmp eax, dword [ebx + 0x374]
jl 0x405418
xor edx, edx
mov dword [ebx + 0x1460], edx
cmp dword [ebx + 0x380], 0
jne 0x40539a
mov ecx, dword [ebx + 0x2e0]
cmp byte [ecx + 0x2c], 0
je 0x405356
cmp byte [ebx + 0x36c], 1
jne 0x40536d
mov eax, ebx
call fcn.0042f6a4
mov edx, dword [esi]
mov dword fs:[0], edx
mov eax, edx
jmp 0x40689a
mov ecx, dword [ebx + 0x2e0]
cmp byte [ecx + 0x2c], 1
jne 0x405418
mov edx, dword [ebx + 0x2e4]
mov eax, ebx
call fcn.004073f8
mov ecx, dword [esi]
mov dword fs:[0], ecx
mov eax, ecx
jmp 0x40689a
cmp dword [ebx + 0x380], 1
jne 0x405418
mov edx, dword [ebx + 0x1330]
dec edx
cmp edx, dword [ebx + 0x37c]
jne 0x4053fa
mov eax, dword [ebx + 0x2e0]
cmp byte [eax + 0x2c], 0
jne 0x4053d5
mov eax, ebx
call fcn.0042f6a4
mov edx, dword [esi]
mov dword fs:[0], edx
mov eax, edx
jmp 0x40689a
mov ecx, dword [ebx + 0x2e0]
cmp byte [ecx + 0x2c], 1
jne 0x405418
xor edx, edx
mov eax, ebx
call fcn.0040aa78
mov ecx, dword [esi]
mov dword fs:[0], ecx
mov eax, ecx
jmp 0x40689a
mov edx, dword [ebx + 0x37c]
mov eax, ebx
inc edx
call fcn.0040aa78
mov edx, dword [esi]
mov dword fs:[0], edx
mov eax, edx
jmp 0x40689a
mov eax, dword [ebx + 0x1508]
cmp eax, dword [ebx + 0x1504]
jge 0x40686e
push eax
mov edx, dword [ebx + 0x354]
push edx
call fcn.00403da8
add esp, 8
mov word [esi + 0x10], 8
lea eax, [ebp - 8]
call fcn.00403628
push eax
lea eax, [ebp - 4]
inc dword [esi + 0x1c]
mov edx, dword [ebx + 0x1508]
inc edx
call fcn.0046edc0
mov edx, eax
inc dword [esi + 0x1c]
mov eax, 0x484911
pop ecx
call fcn.0046f054
lea edx, [ebp - 8]
lea eax, [ebp - 0x10]
push edx
call fcn.00403628
push eax
inc dword [esi + 0x1c]
mov edx, 0x484916
lea eax, [ebp - 0xc]
call fcn.0046ed4c
inc dword [esi + 0x1c]
lea edx, [ebp - 0xc]
pop ecx
pop eax
call fcn.0046ee48
lea edx, [ebp - 0x10]
lea eax, [ebp - 0x18]
push edx
call fcn.00403628
push eax
inc dword [esi + 0x1c]
lea eax, [ebp - 0x14]
mov edx, dword [ebx + 0x1504]
call fcn.0046edc0
mov edx, eax
inc dword [esi + 0x1c]
pop ecx
pop eax
call fcn.0046ee48
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x20]
call fcn.00403628
push eax
inc dword [esi + 0x1c]
mov edx, 0x484918
lea eax, [ebp - 0x1c]
call fcn.0046ed4c
inc dword [esi + 0x1c]
lea edx, [ebp - 0x1c]
pop ecx
pop eax
call fcn.0046ee48
lea edx, [ebp - 0x20]
lea eax, [ebp - 0x28]
push edx
call fcn.00403628
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.00403628
push eax
inc dword [esi + 0x1c]
call fcn.00403658
add esp, 0x10
lea edx, [ebp - 0x24]
pop ecx
pop eax
call fcn.0046ee48
lea edx, [ebp - 0x28]
lea eax, [ebp - 0x30]
push edx
call fcn.00403628
push eax
inc dword [esi + 0x1c]
mov edx, 0x484920
lea eax, [ebp - 0x2c]
call fcn.0046ed4c
inc dword [esi + 0x1c]
lea edx, [ebp - 0x2c]
pop ecx
pop eax
call fcn.0046ee48
lea edx, [ebp - 0x30]
lea eax, [ebp - 0x38]
push edx
call fcn.00403628
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.00403628
push eax
inc dword [esi + 0x1c]
call fcn.00403658
add esp, 0x10
lea edx, [ebp - 0x34]
pop ecx
pop eax
call fcn.0046ee48
lea edx, [ebp - 0x38]
mov ecx, dword [edx]
push ecx
push ebx
call fcn.00405138
add esp, 8
dec dword [esi + 0x1c]
lea eax, [ebp - 0x38]
mov edx, 2
call fcn.0046ee04
dec dword [esi + 0x1c]
lea eax, [ebp - 0x34]
mov edx, 2
call fcn.0046ee04
dec dword [esi + 0x1c]
lea eax, [ebp - 0x30]
mov edx, 2
call fcn.0046ee04
dec dword [esi + 0x1c]
lea eax, [ebp - 0x2c]
mov edx, 2
call fcn.0046ee04
dec dword [esi + 0x1c]
lea eax, [ebp - 0x28]
mov edx, 2
call fcn.0046ee04
dec dword [esi + 0x1c]
lea eax, [ebp - 0x24]
mov edx, 2
call fcn.0046ee04
dec dword [esi + 0x1c]
lea eax, [ebp - 0x20]
mov edx, 2
call fcn.0046ee04
dec dword [esi + 0x1c]
lea eax, [ebp - 0x1c]
mov edx, 2
call fcn.0046ee04
dec dword [esi + 0x1c]
lea eax, [ebp - 0x18]
mov edx, 2
call fcn.0046ee04
dec dword [esi + 0x1c]
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.0046ee04
dec dword [esi + 0x1c]
lea eax, [ebp - 0x10]
mov edx, 2
call fcn.0046ee04
dec dword [esi + 0x1c]
lea eax, [ebp - 0xc]
mov edx, 2
call fcn.0046ee04
dec dword [esi + 0x1c]
lea eax, [ebp - 8]
mov edx, 2
call fcn.0046ee04
dec dword [esi + 0x1c]
lea eax, [ebp - 4]
mov edx, 2
call fcn.0046ee04
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.0040cf1c
mov word [esi + 0x10], 0x14
lea eax, [ebp - 0x44]
call fcn.00403628
push eax
inc dword [esi + 0x1c]
mov edx, 0x484922
lea eax, [ebp - 0x40]
call fcn.0046ed4c
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.00403628
push eax
inc dword [esi + 0x1c]
call fcn.00403658
add esp, 0x10
lea eax, [ebp - 0x3c]
pop edx
pop ecx
call fcn.0046ee48
lea eax, [ebp - 0x44]
push eax
lea eax, [ebp - 0x4c]
call fcn.00403628
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.00403628
push eax
inc dword [esi + 0x1c]
call fcn.00403658
add esp, 0x10
lea edx, [ebp - 0x48]
pop ecx
pop eax
call fcn.0046ee48
lea edx, [ebp - 0x4c]
lea eax, [ebp - 0x54]
push edx
call fcn.00403628
push eax
inc dword [esi + 0x1c]
mov edx, 0x484924
lea eax, [ebp - 0x50]
call fcn.0046ed4c
inc dword [esi + 0x1c]
lea edx, [ebp - 0x50]
pop ecx
pop eax
call fcn.0046ee48
lea edx, [ebp - 0x54]
lea eax, [ebp - 0x5c]
push edx
call fcn.00403628
push eax
inc dword [esi + 0x1c]
lea edx, [ebx + 0x13a8]
lea eax, [ebp - 0x58]
call fcn.0046ed4c
mov edx, eax
inc dword [esi + 0x1c]
pop ecx
pop eax
call fcn.0046ee48
lea edx, [ebp - 0x5c]
mov eax, ebx
mov edx, dword [edx]
call fcn.0043b2b4
dec dword [esi + 0x1c]
lea eax, [ebp - 0x5c]
mov edx, 2
call fcn.0046ee04
dec dword [esi + 0x1c]
lea eax, [ebp - 0x58]
mov edx, 2
call fcn.0046ee04
dec dword [esi + 0x1c]
lea eax, [ebp - 0x54]
mov edx, 2
call fcn.0046ee04
dec dword [esi + 0x1c]
lea eax, [ebp - 0x50]
mov edx, 2
call fcn.0046ee04
dec dword [esi + 0x1c]
lea eax, [ebp - 0x4c]
mov edx, 2
call fcn.0046ee04
dec dword [esi + 0x1c]
lea eax, [ebp - 0x48]
mov edx, 2
call fcn.0046ee04
dec dword [esi + 0x1c]
lea eax, [ebp - 0x44]
mov edx, 2
call fcn.0046ee04
dec dword [esi + 0x1c]
lea eax, [ebp - 0x40]
mov edx, 2
call fcn.0046ee04
dec dword [esi + 0x1c]
lea eax, [ebp - 0x3c]
mov edx, 2
call fcn.0046ee04
xor ecx, ecx
xor eax, eax
mov dword [ebx + 0x150c], ecx
mov dword [ebx + 0x1514], eax
cmp dword [ebx + 0x14f8], 1
jne 0x4058fc
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.00452160
mov edx, eax
mov eax, edi
add edx, 0xfffffff8
call fcn.00452170
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 0x4058fc
mov eax, dword [ebx + 0x1468]
call fcn.004524f4
mov ecx, dword [ebp - 0xe4]
mov edx, dword [ebx + 0x14cc]
mov eax, dword [ebx + 0x1468]
call fcn.00452224
xor edx, edx
mov eax, dword [ebx + 0x1468]
call fcn.00452170
mov edx, dword [ebx + 0x1468]
mov eax, dword [ebx + 0x147c]
mov ecx, dword [eax]
call dword [ecx + 0x50]
cmp dword [ebx + 0x1508], 0
jle 0x405ac4
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 0x405c20
cmp dword [ebp - 0xe0], 0
jle 0x405c20
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 [0x41eb10]
call fcn.00424804
mov dword [ebx + 0x14bc], eax
cmp dword [ebx + 0x13c0], 0
jne 0x4059f0
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.00452224
mov eax, dword [ebp - 0xe4]
push eax
mov edx, dword [ebx + 0x14d0]
push edx
push ebx
call fcn.004068a4
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.004524f4
mov edx, dword [ebx + 0x14b4]
mov eax, dword [ebx + 0x14bc]
mov ecx, dword [eax]
call dword [ecx + 8]
jmp 0x405a4e
cmp dword [ebx + 0x13c0], 1
jl 0x405a4e
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.00424d70
mov ecx, dword [ebp - 0xf8]
mov edx, dword [ebp - 0xfc]
call fcn.00420494
mov edi, dword [ebx + 0x14bc]
mov dword [ebp - 0x64], edi
test edi, edi
je 0x405a9c
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 0x405939
jmp 0x405c20
cmp dword [ebx + 0x1508], 0
jne 0x405c20
mov dl, 1
mov eax, dword [0x41eb10]
call fcn.00424804
mov dword [ebx + 0x14bc], eax
cmp dword [ebx + 0x13c0], 0
jne 0x405b72
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.00452224
mov eax, dword [ebp - 0xe4]
push eax
mov edx, dword [ebx + 0x14d0]
push edx
push ebx
call fcn.004068a4
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.004524f4
mov edx, dword [ebx + 0x14b4]
mov eax, dword [ebx + 0x14bc]
mov ecx, dword [eax]
call dword [ecx + 8]
jmp 0x405bc4
cmp dword [ebx + 0x13c0], 1
jl 0x405bc4
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.00424d70
xor ecx, ecx
xor edx, edx
call fcn.00420494
mov edi, dword [ebx + 0x14bc]
mov dword [ebp - 0x6c], edi
test edi, edi
je 0x405c0a
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 0x405c94
mov word [esi + 0x10], 0x50
mov edx, 0x484466
lea eax, [ebp - 0x70]
call fcn.0046ed4c
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 0x405c54
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 0x405c6a
adc eax, 0
add eax, 0xffffff6a
push eax
mov eax, dword [ebx + 0x14b8]
call fcn.00424d70
pop edx
pop ecx
call fcn.0046ed44
dec dword [esi + 0x1c]
lea eax, [ebp - 0x70]
mov edx, 2
call fcn.0046ee04
jmp 0x405cf1
mov word [esi + 0x10], 0x5c
mov edx, 0x484926
lea eax, [ebp - 0x74]
call fcn.0046ed4c
inc dword [esi + 0x1c]
lea edx, [ebp - 0x74]
lea eax, [ebx + 0x1488]
call fcn.0046eeec
push eax
dec dword [esi + 0x1c]
lea eax, [ebp - 0x74]
mov edx, 2
call fcn.0046ee04
pop ecx
test cl, cl
je 0x405cf1
mov eax, dword [ebx + 0x1488]
push eax
mov eax, dword [ebx + 0x14b8]
call fcn.00424d70
mov ecx, dword [ebx + 0x1484]
mov edx, dword [ebx + 0x1480]
call fcn.0046ed44
cmp dword [ebx + 0x14f8], 1
jne 0x405d3e
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 0x405f43
xor edx, edx
mov dword [ebp - 0xe4], edx
jmp 0x405f22
mov word [esi + 0x10], 0x68
lea eax, [ebp - 0x78]
call fcn.00403628
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.0046edc0
mov edx, eax
inc dword [esi + 0x1c]
pop eax
call fcn.0046eed4
push eax
dec dword [esi + 0x1c]
lea eax, [ebp - 0x78]
mov edx, 2
call fcn.0046ee04
dec dword [esi + 0x1c]
lea eax, [ebp - 0x7c]
mov edx, 2
call fcn.0046ee04
pop ecx
test cl, cl
je 0x405f1c
mov dword [ebx + 0x1518], 1
jmp 0x405e77
inc dword [ebp - 0xe4]
mov word [esi + 0x10], 0x80
lea eax, [ebp - 0x88]
call fcn.00403628
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.0046edc0
inc dword [esi + 0x1c]
lea edx, [ebp - 0x8c]
pop eax
call fcn.0046eed4
push eax
dec dword [esi + 0x1c]
lea eax, [ebp - 0x8c]
mov edx, 2
call fcn.0046ee04
dec dword [esi + 0x1c]
lea eax, [ebp - 0x88]
mov edx, 2
call fcn.0046ee04
pop ecx
test cl, cl
je 0x405f43
mov eax, dword [ebp - 0xe4]
mov dword [ebp - 0xe4], eax
jmp 0x405f43
mov eax, dword [ebx + 0x1454]
mov edx, dword [eax]
call dword [edx + 0x14]
test eax, eax
jns 0x405e89
add eax, 7
sar eax, 3
mov ecx, dword [ebp - 0xe4]
inc ecx
cmp eax, ecx
jle 0x405f43
mov word [esi + 0x10], 0x74
lea eax, [ebp - 0x80]
call fcn.00403628
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.0046edc0
mov edx, eax
inc dword [esi + 0x1c]
pop eax
call fcn.0046eed4
test al, al
lea eax, [ebp - 0x80]
setne cl
and ecx, 1
mov edx, 2
push ecx
dec dword [esi + 0x1c]
call fcn.0046ee04
dec dword [esi + 0x1c]
lea eax, [ebp - 0x84]
mov edx, 2
call fcn.0046ee04
pop ecx
test ecx, ecx
jne 0x405ddd
jmp 0x405f43
inc dword [ebp - 0xe4]
mov eax, dword [ebx + 0x1454]
mov edx, dword [eax]
call dword [edx + 0x14]
test eax, eax
jns 0x405f34
add eax, 7
sar eax, 3
cmp eax, dword [ebp - 0xe4]
jg 0x405d60
cmp byte [ebx + 0x151c], 0
jne 0x4064d0
cmp dword [ebx + 0x14f8], 1
jne 0x4060f5
mov ecx, dword [ebx + 0x2d0]
mov eax, dword [ecx + 0x38]
sar eax, 1
jns 0x405f6d
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.00467e7c
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 0x405fdd
sar edi, 1
jns 0x405fc0
adc edi, 0
mov dword [ebp - 0x1ac], edi
fild dword [ebp - 0x1ac]
fsubr dword [ebx + 0x146c]
call fcn.00467ea4
mov dword [ebx + 0x358], eax
mov edx, dword [ebx + 0x2d0]
mov ecx, dword [edx + 0x3c]
sar ecx, 1
jns 0x405fed
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.00467e7c
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 0x40605d
sar edi, 1
jns 0x406040
adc edi, 0
mov dword [ebp - 0x1ac], edi
fild dword [ebp - 0x1ac]
fsubr dword [ebx + 0x1470]
call fcn.00467ea4
mov dword [ebx + 0x35c], eax
cmp dword [ebx + 0x358], 0
jge 0x406070
xor edx, edx
mov dword [ebx + 0x358], edx
jmp 0x4060a8
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 0x4060a8
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 0x4060bb
xor eax, eax
mov dword [ebx + 0x35c], eax
jmp 0x406105
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 0x406105
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 0x406105
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.00434ed8
xor ecx, ecx
xor edx, edx
sub ecx, dword [ebx + 0x35c]
sub edx, dword [ebx + 0x358]
call fcn.00420494
cmp dword [ebx + 0x13d0], 1
jne 0x4063d4
cmp dword [ebx + 0x1518], 1
jne 0x4063d4
cmp byte [ebx + 0x151c], 0
jne 0x4063d4
mov eax, dword [ebx + 0x2d0]
call fcn.00434ed8
mov eax, dword [eax + 0x14]
mov dl, 1
call fcn.004202b8
mov eax, dword [ebx + 0x2d0]
call fcn.00434ed8
mov eax, dword [eax + 0x10]
mov edx, 2
call fcn.0041ffc4
mov word [esi + 0x10], 0x8c
lea eax, [ebp - 0x90]
call fcn.00403628
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.0046f004
mov dword [ebp - 0xe8], eax
dec dword [esi + 0x1c]
lea eax, [ebp - 0x90]
mov edx, 2
call fcn.0046ee04
mov word [esi + 0x10], 0x98
lea eax, [ebp - 0x94]
call fcn.00403628
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.0046f004
mov dword [ebp - 0xec], eax
dec dword [esi + 0x1c]
lea eax, [ebp - 0x94]
mov edx, 2
call fcn.0046ee04
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.00403628
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.0046edc0
inc dword [esi + 0x1c]
lea edx, [ebp - 0x9c]
pop eax
call fcn.0046eed4
push eax
dec dword [esi + 0x1c]
lea eax, [ebp - 0x9c]
mov edx, 2
call fcn.0046ee04
dec dword [esi + 0x1c]
lea eax, [ebp - 0x98]
mov edx, 2
call fcn.0046ee04
pop ecx
test cl, cl
je 0x4062d1
mov eax, dword [ebx + 0x2d0]
call fcn.00434ed8
mov eax, dword [eax + 0x10]
mov edx, 0xffff
call fcn.0041feb8
jmp 0x4062e9
mov eax, dword [ebx + 0x2d0]
call fcn.00434ed8
mov eax, dword [eax + 0x10]
mov edx, 0xff
call fcn.0041feb8
mov word [esi + 0x10], 0xb0
lea eax, [ebp - 0xa0]
call fcn.00403628
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.0046edc0
inc dword [esi + 0x1c]
lea edx, [ebp - 0xa4]
pop eax
call fcn.0046eed4
push eax
dec dword [esi + 0x1c]
lea eax, [ebp - 0xa4]
mov edx, 2
call fcn.0046ee04
dec dword [esi + 0x1c]
lea eax, [ebp - 0xa0]
mov edx, 2
call fcn.0046ee04
pop ecx
test cl, cl
je 0x40639e
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.00434ed8
mov ecx, dword [ebp - 0xec]
add ecx, 0xffffffec
mov edx, dword [ebp - 0xe8]
add edx, 0xffffffec
call fcn.00420540
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.00434ed8
mov ecx, dword [ebp - 0xec]
add ecx, 0xfffffff1
mov edx, dword [ebp - 0xe8]
add edx, 0xfffffff1
call fcn.00420540
cmp dword [ebx + 0x14f8], 1
jne 0x406729
fild dword [ebx + 0x358]
fsubr dword [ebx + 0x146c]
call fcn.00467ea4
mov dword [ebp - 0xe8], eax
fild dword [ebx + 0x35c]
fsubr dword [ebx + 0x1470]
call fcn.00467ea4
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.004050fc
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.004050fc
add esp, 0x14
push eax
mov eax, dword [ebx + 0x2d0]
call fcn.00434ed8
push eax
mov eax, dword [ebx + 0x14c0]
call fcn.00424d70
pop ecx
pop edx
call fcn.0042040c
mov eax, dword [ebx + 0x147c]
call fcn.0042637c
push eax
mov edx, dword [ebp - 0xec]
push edx
mov ecx, dword [ebp - 0xe8]
push ecx
mov eax, dword [ebx + 0x2d0]
call fcn.00434ed8
call fcn.004209a8
push eax
call sub.USER32.DLL_DrawIcon
jmp 0x406729
cmp dword [ebx + 0x14f8], 1
jne 0x4065cf
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.00467ea4
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.00467ea4
push eax
fld dword [ebx + 0x1470]
call fcn.00467ea4
push eax
fld dword [ebx + 0x146c]
call fcn.00467ea4
push eax
lea edx, [ebp - 0x1a0]
push edx
call fcn.004050fc
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.004050fc
add esp, 0x14
push eax
mov eax, dword [ebx + 0x14b8]
call fcn.00424d70
push eax
mov eax, dword [ebx + 0x14c0]
call fcn.00424d70
pop ecx
pop edx
call fcn.0042040c
mov eax, dword [ebx + 0x147c]
call fcn.0042637c
push eax
fld dword [ebx + 0x1470]
call fcn.00467ea4
push eax
fld dword [ebx + 0x146c]
call fcn.00467ea4
push eax
mov eax, dword [ebx + 0x14b8]
call fcn.00424d70
call fcn.004209a8
push eax
call sub.USER32.DLL_DrawIcon
mov edx, dword [ebx + 0x145c]
imul edx, dword [ebx + 0x14e8]
cmp edx, 0x3e8
jge 0x406642
cmp dword [ebx + 0x1458], 2
jge 0x406679
mov eax, dword [ebx + 0x2d0]
call fcn.00434ed8
call fcn.004209a8
push eax
call sub.GDI32.DLL_GetStretchBltMode
cmp eax, 4
je 0x406679
push 4
mov eax, dword [ebx + 0x2d0]
call fcn.00434ed8
call fcn.004209a8
push eax
call sub.GDI32.DLL_SetStretchBltMode
push 0
push 0
push 0
mov eax, dword [ebx + 0x2d0]
call fcn.00434ed8
call fcn.004209a8
push eax
call sub.GDI32.DLL_SetBrushOrgEx
jmp 0x406679
inc dword [ebx + 0x1458]
mov eax, dword [ebx + 0x2d0]
call fcn.00434ed8
call fcn.004209a8
push eax
call sub.GDI32.DLL_GetStretchBltMode
dec eax
je 0x406679
push 1
mov eax, dword [ebx + 0x2d0]
call fcn.00434ed8
call fcn.004209a8
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.00424d70
call fcn.004209a8
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.00434ed8
call fcn.004209a8
push eax
call sub.GDI32.DLL_StretchBlt
push 0
push 0
mov eax, dword [ebx + 0x2d0]
call fcn.00434ed8
or ecx, 0xffffffff
or edx, 0xffffffff
call fcn.00420688
cmp dword [ebx + 0x14f8], 1
jne 0x406729
mov eax, dword [ebx + 0x14c0]
push eax
mov eax, dword [ebx + 0x14b8]
call fcn.00424d70
push eax
fld dword [ebx + 0x1470]
call fcn.00467ea4
push eax
fld dword [ebx + 0x146c]
call fcn.00467ea4
mov edx, eax
pop ecx
pop eax
call fcn.00420494
cmp dword [ebx + 0x1394], 1
jne 0x406868
mov word [esi + 0x10], 0xbc
lea eax, [ebp - 0xb0]
call fcn.00403628
push eax
inc dword [esi + 0x1c]
mov edx, 0x484927
lea eax, [ebp - 0xac]
call fcn.0046ed4c
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.00403628
push eax
inc dword [esi + 0x1c]
call fcn.00403658
add esp, 0x10
lea eax, [ebp - 0xa8]
pop edx
pop ecx
call fcn.0046ee48
lea eax, [ebp - 0xb0]
push eax
lea eax, [ebp - 0xb8]
call fcn.00403628
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.00403628
push eax
inc dword [esi + 0x1c]
call fcn.00403658
add esp, 0x10
lea edx, [ebp - 0xb4]
pop ecx
pop eax
call fcn.0046ee48
lea edx, [ebp - 0xb8]
mov ecx, dword [edx]
push ecx
mov eax, dword [ebx + 0x2d0]
call fcn.00434ed8
mov edx, dword [ebx + 0x2d0]
mov edx, dword [edx + 0x38]
add edx, 0xffffff9c
xor ecx, ecx
call fcn.0046ed44
dec dword [esi + 0x1c]
lea eax, [ebp - 0xb8]
mov edx, 2
call fcn.0046ee04
dec dword [esi + 0x1c]
lea eax, [ebp - 0xb4]
mov edx, 2
call fcn.0046ee04
dec dword [esi + 0x1c]
lea eax, [ebp - 0xb0]
mov edx, 2
call fcn.0046ee04
dec dword [esi + 0x1c]
lea eax, [ebp - 0xac]
mov edx, 2
call fcn.0046ee04
dec dword [esi + 0x1c]
lea eax, [ebp - 0xa8]
mov edx, 2
call fcn.0046ee04
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
mov edx, dword [esi]
mov dword fs:[0], edx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret