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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xd4
mov eax, dword [0xaba010]
xor eax, esp
mov dword [esp + 0xd0], eax
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, ecx
push edi
push 0x800
mov dword [esp + 0x80], esi
call fcn.004f5e38
mov dword [esp + 0x18], eax
pop ecx
test eax, eax
jne 0x470ab5
and dword [esi], eax
and dword [esi + 4], eax
mov eax, esi
jmp 0x471c63
call fcn.00441eb2
mov byte [esp + 0x27], al
call fcn.004164bb
mov edi, dword [ebx + 0xec]
mov ecx, dword [ebx + 0xe8]
mov byte [esp + 0x5b], al
xor eax, eax
mov esi, eax
mov dword [esp + 0x18], edi
mov dword [esp + 0x28], esi
mov dword [ebx + 0xac], eax
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x20], eax
cmp dword [ebx + 0x50], eax
jne 0x470b00
test byte [ebx + 0x44], 2
mov dword [esp + 0x10], ecx
je 0x470b86
cmp byte [ebp + 0x10], 0
mov edx, dword [ebx + 0x118]
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x30], edi
mov dword [esp + 0x20], edx
lea eax, [edx + ecx]
mov dword [esp + 0x10], ecx
mov dword [esp + 0x34], eax
lea eax, [edx + edi]
mov dword [esp + 0x38], eax
je 0x470b78
push ecx
mov eax, esp
lea esi, [esp + 0x30]
push ecx
push 0x5000000d
sub esp, 0x10
mov edi, esp
mov dword [eax], 0x51e784
push 0x7402
movsd dword es:[edi], dword [esi]
push ecx
mov eax, esp
mov ecx, str.STATIC
movsd dword es:[edi], dword [esi]
mov dword [eax], ecx
mov ecx, ebx
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call fcn.00471e1b
mov eax, dword [ebx + 0x118]
mov edi, dword [esp + 0x18]
mov esi, dword [esp + 0x28]
mov dword [esp + 0x20], eax
mov eax, dword [ebx + 0xe8]
mov dword [esp + 0x10], eax
mov ecx, dword [ebx + 0x124]
add ecx, dword [esp + 0x34]
mov dword [esp + 0x1c], ecx
cmp dword [ebx + 0x54], 0
je 0x470c74
mov eax, dword [ebp + 0xc]
sub eax, dword [esp + 0x10]
sub eax, ecx
cmp dword [ebp + 0xc], 0x1869f
mov dword [esp + 0x10], eax
jne 0x470bb0
mov eax, dword [ebx + 0x180]
mov dword [esp + 0x10], eax
mov esi, dword [ebx + 0xbc]
push 0x800
push dword [esp + 0x18]
push dword [ebx + 0x54]
call fcn.004708fb
push dword [esp + 0x10]
lea eax, [esp + 0x44]
mov ecx, ebx
push esi
mov esi, dword [esp + 0x1c]
push 0x810
push 0xffffffffffffffff
push esi
push eax
call fcn.004707c6
mov eax, dword [ebx + 0x118]
mov edx, dword [esp + 0x44]
cmp edx, eax
mov dword [esp + 0x30], edi
cmovl edx, eax
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x2c], eax
add eax, dword [esp + 0x40]
cmp byte [ebp + 0x10], 0
lea ecx, [edx + edi]
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], ecx
je 0x470c4a
push ecx
mov eax, esp
push ecx
push 0x50000080
sub esp, 0x10
mov dword [eax], esi
mov edi, esp
lea esi, [esp + 0x48]
push 0x7401
movsd dword es:[edi], dword [esi]
push ecx
mov eax, esp
mov ecx, str.STATIC
movsd dword es:[edi], dword [esi]
mov dword [eax], ecx
mov ecx, ebx
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call fcn.00471e1b
mov edi, dword [esp + 0x18]
mov ecx, dword [esp + 0x38]
mov esi, dword [esp + 0x28]
mov eax, ecx
sub eax, edi
add edi, dword [esp + 0x20]
cmp eax, dword [esp + 0x20]
mov eax, dword [esp + 0x34]
cmovge edi, ecx
add edi, dword [ebx + 0x12c]
test eax, eax
mov dword [esp + 0x18], edi
cmovg esi, eax
mov dword [esp + 0x28], esi
cmp dword [ebx + 0x58], 0
je 0x470d67
mov ecx, dword [ebp + 0xc]
mov eax, ecx
sub eax, dword [ebx + 0xe8]
mov esi, dword [esp + 0x1c]
sub eax, esi
cmp ecx, 0x1869f
jne 0x470c9d
mov eax, dword [ebx + 0x184]
push eax
push dword [ebx + 0xc0]
lea eax, [esp + 0x48]
push ecx
push ecx
push dword [esp + 0x24]
mov ecx, ebx
push dword [ebx + 0x58]
push eax
call fcn.00471dc8
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], edi
mov ecx, dword [eax]
mov edx, dword [eax + 4]
add ecx, esi
add edx, edi
mov dword [esp + 0x34], ecx
cmp byte [ebp + 0x10], 0
mov dword [esp + 0x5c], edx
mov dword [esp + 0x38], edx
je 0x470d3b
mov ecx, str.SysLink
mov edx, str.STATIC
mov eax, ecx
mov cl, byte [esp + 0x27]
test cl, cl
cmove eax, edx
mov dword [esp + 0x48], eax
jne 0x470d02
push dword [esp + 0x14]
mov ecx, ebx
call fcn.00471e92
mov edx, dword [esp + 0x14]
lea esi, [esp + 0x2c]
push ecx
mov eax, esp
push ecx
push 0x50000080
sub esp, 0x10
mov edi, esp
mov dword [eax], edx
push 0x7403
movsd dword es:[edi], dword [esi]
push ecx
mov ecx, dword [esp + 0x6c]
mov eax, esp
movsd dword es:[edi], dword [esi]
mov dword [eax], ecx
mov ecx, ebx
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call fcn.00471e1b
mov edi, dword [esp + 0x18]
mov edx, dword [esp + 0x5c]
mov ecx, dword [esp + 0x20]
test ecx, ecx
jle 0x470d54
cmp dword [ebx + 0x54], 0
jne 0x470d54
mov eax, edx
sub eax, edi
cmp eax, ecx
jge 0x470d54
lea edx, [ecx + edi]
mov esi, dword [esp + 0x28]
mov edi, edx
cmp dword [esp + 0x34], esi
cmovg esi, dword [esp + 0x34]
mov dword [esp + 0x28], esi
mov eax, dword [ebx + 0x130]
cdq
sub eax, edx
sar eax, 1
add edi, eax
cmp dword [ebx + 0x78], 0
mov dword [esp + 0x18], edi
je 0x470e63
test byte [ebx + 0x44], 0x40
jne 0x470e63
mov eax, dword [ebp + 0xc]
sub eax, dword [ebx + 0xe8]
mov esi, dword [esp + 0x1c]
sub eax, esi
push eax
push dword [ebx + 0xc0]
lea eax, [esp + 0x48]
push ecx
push ecx
push dword [esp + 0x24]
mov ecx, ebx
push dword [ebx + 0x78]
push eax
call fcn.00471dc8
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], edi
mov ecx, dword [eax]
mov eax, dword [eax + 4]
add ecx, esi
add eax, edi
mov dword [esp + 0x34], ecx
cmp byte [ebp + 0x10], 0
mov dword [esp + 0x38], eax
je 0x470e33
mov cl, byte [esp + 0x27]
mov eax, str.SysLink
test cl, cl
mov edx, str.STATIC
cmove eax, edx
mov dword [esp + 0x48], eax
jne 0x470dfa
push dword [esp + 0x14]
mov ecx, ebx
call fcn.00471e92
mov edx, dword [esp + 0x14]
lea esi, [esp + 0x2c]
push ecx
mov eax, esp
push ecx
push 0x50000080
sub esp, 0x10
mov edi, esp
mov dword [eax], edx
push 0x7407
movsd dword es:[edi], dword [esi]
push ecx
mov ecx, dword [esp + 0x6c]
mov eax, esp
movsd dword es:[edi], dword [esi]
mov dword [eax], ecx
mov ecx, ebx
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call fcn.00471e1b
mov ecx, dword [esp + 0x34]
mov eax, dword [esp + 0x38]
mov esi, dword [esp + 0x28]
cmp ecx, esi
mov edi, dword [ebx + 0x13c]
cmovg esi, ecx
mov ecx, dword [ebx + 0x34]
add edi, eax
mov dword [esp + 0x28], esi
mov eax, dword [ebx + 0x30]
mov dword [esp + 0x40], eax
mov dword [esp + 0x40], eax
mov eax, edi
cdq
idiv ecx
sub ecx, edx
add edi, ecx
mov dword [esp + 0x18], edi
test dword [ebx + 0x44], 0x600
je 0x470f04
mov ecx, dword [ebp + 0xc]
sub ecx, dword [ebx + 0xe8]
mov eax, dword [esp + 0x1c]
sub ecx, eax
cmp dword [ebp + 0xc], 0x1869f
jne 0x470e8e
mov ecx, dword [ebx + 0x190]
add ecx, eax
mov dword [esp + 0x2c], eax
mov eax, dword [ebx + 0x140]
add eax, edi
mov dword [esp + 0x30], edi
cmp byte [ebp + 0x10], 0
mov dword [esp + 0x48], ecx
mov dword [esp + 0x34], ecx
mov dword [esp + 0x38], eax
je 0x470eef
push ecx
mov ecx, dword [esp + 0x18]
lea esi, [esp + 0x30]
mov eax, esp
push ecx
push 0x50000001
sub esp, 0x10
mov edi, esp
mov dword [eax], ecx
push 0x740a
movsd dword es:[edi], dword [esi]
push ecx
mov eax, esp
mov ecx, ebx
movsd dword es:[edi], dword [esi]
mov dword [eax], str.msctls_progress32
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call fcn.00471e1b
mov esi, dword [esp + 0x28]
mov ecx, dword [esp + 0x48]
mov eax, dword [esp + 0x38]
mov edi, dword [ebx + 0x12c]
add edi, eax
cmp ecx, esi
mov dword [esp + 0x18], edi
cmovle ecx, esi
mov dword [esp + 0x28], ecx
mov esi, dword [esp + 0x1c]
add esi, dword [ebx + 0x108]
cmp dword [ebx + 0x68], 0
mov dword [esp + 0x1c], esi
jbe 0x47106a
xor edx, edx
mov dword [esp + 0x2c], esi
mov dword [esp + 0x20], edx
mov eax, dword [ebp + 0xc]
sub eax, dword [ebx + 0x100]
sub eax, dword [ebx + 0xe8]
sub eax, esi
cmp dword [ebp + 0xc], 0x1869f
mov dword [esp + 0x10], eax
jne 0x470f4e
mov eax, dword [ebx + 0x188]
mov dword [esp + 0x10], eax
mov eax, dword [ebx + 0x6c]
mov esi, dword [ebx + 0xc0]
push 0x800
push dword [esp + 0x18]
push dword [eax + edx*8 + 4]
call fcn.004708fb
push dword [esp + 0x10]
lea eax, [esp + 0x44]
mov ecx, ebx
push esi
push pe_nt_image_headers32
push 0xffffffffffffffff
push dword [esp + 0x24]
push eax
call fcn.004707c6
mov ecx, dword [esp + 0x40]
mov eax, dword [ebx + 0x104]
mov edx, dword [esp + 0x44]
mov esi, dword [esp + 0x1c]
mov dword [esp + 0x50], ecx
add ecx, dword [ebx + 0x100]
cmp edx, eax
mov dword [esp + 0x30], edi
cmovl edx, eax
mov dword [esp + 0x10], edx
mov eax, dword [esp + 0x10]
lea edx, [ecx + esi]
add eax, edi
mov dword [esp + 0x48], edx
cmp byte [ebp + 0x10], 0
mov dword [esp + 0x34], edx
mov dword [esp + 0x38], eax
je 0x47101a
cmp dword [esp + 0x20], 0
lea esi, [esp + 0x2c]
mov edx, dword [esp + 0x14]
mov eax, 0x50012409
mov ecx, 0x50032409
cmovne ecx, eax
push ecx
mov eax, esp
push ecx
push ecx
sub esp, 0x10
mov edi, esp
mov dword [eax], edx
mov eax, 0x7420
add ax, word [esp + 0x3c]
movzx eax, ax
movsd dword es:[edi], dword [esi]
push eax
push ecx
mov eax, esp
mov ecx, ebx
movsd dword es:[edi], dword [esi]
mov dword [eax], str.BUTTON
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call fcn.00471e1b
mov edi, dword [esp + 0x18]
mov esi, dword [esp + 0x1c]
mov edx, dword [esp + 0x48]
cmp edx, dword [esp + 0x28]
mov eax, dword [esp + 0x10]
cmovle edx, dword [esp + 0x28]
add eax, dword [ebx + 0x134]
mov ecx, edx
mov edx, dword [esp + 0x20]
add edi, eax
inc edx
mov dword [esp + 0x28], ecx
mov dword [esp + 0x18], edi
mov dword [esp + 0x48], edi
mov dword [esp + 0x20], edx
cmp edx, dword [ebx + 0x68]
jb 0x470f26
mov eax, dword [ebx + 0x130]
cdq
sub eax, edx
mov dword [esp + 0x28], ecx
mov edi, eax
sar edi, 1
sub edi, dword [ebx + 0x134]
add edi, dword [esp + 0x48]
cmp dword [ebx + 0x5c], 0
mov byte [ebx + 0xe6], 0
mov dword [esp + 0x20], 0x740b
jbe 0x4712f3
test byte [ebx + 0x44], 0x30
je 0x4712f3
mov eax, dword [ebx + 0x30]
mov ecx, dword [ebx + 0x34]
mov dword [esp + 0x40], eax
mov dword [esp + 0x40], eax
mov eax, edi
cdq
idiv ecx
sub ecx, edx
add edi, ecx
cmp dword [ebx + 0x68], 0
mov dword [esp + 0x18], edi
jbe 0x4710bf
mov eax, dword [ebx + 0x130]
cdq
sub eax, edx
sar eax, 1
add edi, eax
mov dword [esp + 0x18], edi
xor ecx, ecx
mov dword [esp + 0x3c], ecx
cmp dword [ebx + 0x5c], ecx
jbe 0x4712e6
mov eax, dword [esp + 0x28]
mov dword [esp + 0x64], esi
mov edi, dword [esp + 0x14]
mov dword [esp + 0x40], eax
mov eax, dword [ebx + 0x60]
shl ecx, 3
push 0x800
push edi
mov dword [esp + 0x58], ecx
push dword [eax + ecx + 4]
call fcn.004708fb
xor eax, eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x5c], eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x78], eax
lea eax, [esp + 0x78]
push eax
lea eax, [esp + 0x60]
push eax
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x34]
push eax
push edi
call fcn.00470884
mov edx, dword [ebx + 0xf8]
add edx, edx
test byte [ebx + 0x44], 0x20
mov dword [esp + 0x48], edx
jne 0x471147
mov eax, dword [ebx + 0x128]
add eax, dword [ebx + 0x11c]
add edx, eax
mov dword [esp + 0x48], edx
mov eax, dword [ebp + 0xc]
sub eax, dword [ebx + 0xe8]
sub eax, edx
sub eax, esi
cmp dword [ebp + 0xc], 0x1869f
mov dword [esp + 0x74], eax
jne 0x47116d
mov eax, dword [ebx + 0x18c]
sub eax, edx
mov dword [esp + 0x74], eax
push eax
push dword [ebx + 0xbc]
lea eax, [esp + 0x88]
mov ecx, ebx
push pe_nt_image_headers32
push dword [esp + 0x1c]
push dword [esp + 0x38]
push eax
call fcn.004707c6
push dword [esp + 0x74]
mov ecx, ebx
push dword [ebx + 0xc0]
mov esi, dword [eax]
mov edi, dword [eax + 4]
lea eax, [esp + 0x34]
push 0x810
push dword [esp + 0x84]
push dword [esp + 0x6c]
push eax
call fcn.004707c6
mov edx, dword [eax]
cmp esi, edx
mov ecx, dword [eax + 4]
mov eax, dword [ebx + 0x178]
cmovg edx, esi
add edx, dword [esp + 0x48]
cmp edx, eax
cmovl edx, eax
mov eax, dword [ebp + 0xc]
sub eax, dword [ebx + 0xe8]
mov dword [esp + 0x6c], eax
mov eax, dword [ebx + 0xfc]
mov dword [esp + 0x48], edx
mov edx, dword [esp + 0x18]
mov dword [esp + 0x68], edx
lea eax, [edi + eax*2]
mov edi, dword [ebx + 0x34]
add ecx, eax
mov eax, dword [ebx + 0x30]
add ecx, edx
mov dword [esp + 0x5c], eax
mov dword [esp + 0x5c], eax
mov eax, ecx
cdq
idiv edi
sub edi, edx
add edi, ecx
cmp byte [ebp + 0x10], 0
mov dword [esp + 0x18], edi
mov dword [esp + 0x70], edi
je 0x4712bd
mov eax, dword [ebx + 0x60]
add eax, dword [esp + 0x50]
cmp byte [esp + 0x5b], 0
je 0x471254
mov eax, dword [eax]
cmp eax, dword [ebx + 0x64]
jne 0x471248
or dword [ebx + 0xac], 0xffffffff
mov edx, 0x5003240f
mov eax, 0x5001240f
jmp 0x47127b
mov edx, 0x5003240e
mov eax, 0x5001240e
jmp 0x47127b
mov byte [ebx + 0xe6], 1
mov eax, dword [eax]
cmp eax, dword [ebx + 0x64]
jne 0x471271
mov eax, dword [esp + 0x3c]
add eax, 0x740b
mov dword [ebx + 0xac], eax
mov edx, 0x5003240b
mov eax, 0x5001240b
cmp dword [esp + 0x3c], 0
lea esi, [esp + 0x64]
push ecx
mov ecx, dword [esp + 0x18]
cmovne edx, eax
mov eax, esp
push ecx
push edx
sub esp, 0x10
mov edi, esp
mov dword [eax], ecx
mov eax, 0x740b
add ax, word [esp + 0x58]
movzx eax, ax
movsd dword es:[edi], dword [esi]
push eax
push ecx
mov eax, esp
mov ecx, ebx
movsd dword es:[edi], dword [esi]
mov dword [eax], str.BUTTON
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call fcn.00471e1b
mov edi, dword [esp + 0x18]
mov eax, dword [esp + 0x48]
mov esi, dword [esp + 0x1c]
add eax, esi
cmp eax, dword [esp + 0x40]
mov ecx, dword [esp + 0x3c]
cmovle eax, dword [esp + 0x40]
inc ecx
mov dword [esp + 0x3c], ecx
cmp ecx, dword [ebx + 0x5c]
jb 0x4710d6
mov dword [esp + 0x28], eax
mov eax, dword [ebx + 0x130]
cdq
sub eax, edx
sar eax, 1
add edi, eax
and dword [esp + 0x3c], 0
xor ecx, ecx
mov eax, dword [ebx + 0xe8]
mov dword [ebx + 0x160], edi
add edi, dword [ebx + 0x13c]
mov dword [esp + 0x18], edi
mov dword [esp + 0x40], eax
mov dword [esp + 0x10], ecx
cmp dword [ebx + 0x78], ecx
je 0x4714db
mov ecx, dword [ebx + 0x120]
mov dword [esp + 0x64], eax
add eax, ecx
cmp byte [ebp + 0x10], 0
mov dword [esp + 0x6c], eax
lea eax, [ecx + edi]
mov dword [esp + 0x68], edi
mov dword [esp + 0x70], eax
je 0x47137a
push ecx
mov eax, esp
lea esi, [esp + 0x68]
push ecx
push 0x5000010d
sub esp, 0x10
mov edi, esp
mov dword [eax], 0x51e784
push 0x7405
movsd dword es:[edi], dword [esi]
push ecx
mov eax, esp
mov ecx, str.STATIC
movsd dword es:[edi], dword [esi]
mov dword [eax], ecx
mov ecx, ebx
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call fcn.00471e1b
mov ecx, dword [ebx + 0x120]
mov eax, dword [ebx + 0x128]
mov edi, dword [ebx + 0xc0]
add eax, ecx
mov esi, dword [ebx + 0x17c]
push 0x800
push dword [esp + 0x18]
mov dword [esp + 0x18], eax
push dword [ebx + 0x80]
call fcn.004708fb
push esi
push edi
push pe_nt_image_headers32
push 0xffffffffffffffff
push dword [esp + 0x24]
lea eax, [esp + 0x64]
mov ecx, ebx
push eax
call fcn.004707c6
mov edi, dword [ebx + 0xc0]
mov esi, dword [ebx + 0x17c]
push 0x800
push dword [esp + 0x18]
push dword [ebx + 0x7c]
call fcn.004708fb
push esi
mov esi, dword [esp + 0x18]
lea eax, [esp + 0x4c]
push edi
push pe_nt_image_headers32
push 0xffffffffffffffff
push esi
push eax
mov ecx, ebx
call fcn.004707c6
mov eax, dword [esp + 0x48]
cmp dword [esp + 0x50], eax
mov ecx, dword [esp + 0x4c]
cmovg eax, dword [esp + 0x50]
cmp dword [esp + 0x54], ecx
cmovg ecx, dword [esp + 0x54]
xor edi, edi
add eax, dword [esp + 0x10]
mov dword [esp + 0x50], eax
mov eax, dword [ebx + 0x120]
mov dword [esp + 0x5c], ecx
mov dword [esp + 0x48], edi
cmp ecx, eax
jge 0x47143a
cdq
sub eax, edx
mov edi, eax
mov eax, ecx
cdq
sub eax, edx
sar edi, 1
sar eax, 1
sub edi, eax
mov dword [esp + 0x48], edi
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0x18]
mov ecx, dword [esp + 0x40]
add eax, ecx
mov dword [esp + 0x2c], eax
lea eax, [edi + edx]
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x10]
add eax, dword [esp + 0x50]
add ecx, eax
mov eax, dword [esp + 0x5c]
add eax, edi
mov dword [esp + 0x10], ecx
add eax, edx
mov dword [esp + 0x34], ecx
cmp byte [ebp + 0x10], 0
mov dword [esp + 0x38], eax
je 0x4714b1
push ecx
mov eax, esp
push ecx
push 0x50000180
sub esp, 0x10
mov dword [eax], esi
mov edi, esp
lea esi, [esp + 0x48]
push 0x7406
movsd dword es:[edi], dword [esi]
push ecx
mov eax, esp
mov ecx, str.STATIC
movsd dword es:[edi], dword [esi]
mov dword [eax], ecx
mov ecx, ebx
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call fcn.00471e1b
mov ecx, dword [esp + 0x10]
mov edi, dword [esp + 0x48]
mov eax, dword [esp + 0x38]
xor edx, edx
test ecx, ecx
cmovle ecx, edx
add edi, edi
sub edi, dword [esp + 0x30]
add edi, eax
mov dword [esp + 0x10], ecx
mov dword [esp + 0x3c], edi
cmp dword [ebx + 0x74], edx
je 0x4714db
add edi, dword [ebx + 0x138]
mov dword [esp + 0x3c], edi
mov dword [esp + 0x10], ecx
cmp dword [ebx + 0x74], 0
mov edx, dword [ebx + 0xe8]
mov dword [esp + 0x5c], edx
je 0x47160c
mov edi, dword [ebx + 0xc0]
mov esi, dword [ebx + 0x17c]
push 0x800
push dword [esp + 0x18]
push dword [ebx + 0x74]
call fcn.004708fb
push esi
mov esi, dword [esp + 0x18]
lea eax, [esp + 0x44]
push edi
push pe_nt_image_headers32
push 0xffffffffffffffff
push esi
push eax
mov ecx, ebx
call fcn.004707c6
mov ecx, dword [esp + 0x40]
mov eax, dword [ebx + 0x100]
mov edx, dword [esp + 0x44]
add eax, ecx
mov edi, dword [esp + 0x3c]
mov dword [esp + 0x40], eax
mov eax, dword [ebx + 0x104]
cmp edx, eax
mov dword [esp + 0x50], ecx
cmovl edx, eax
mov eax, dword [ebx + 0x170]
mov dword [esp + 0x48], edx
cmp edx, eax
jge 0x471576
test edi, edi
jne 0x471576
cdq
sub eax, edx
mov edi, eax
mov eax, dword [esp + 0x48]
cdq
sub eax, edx
sar edi, 1
mov edx, dword [esp + 0x48]
sar eax, 1
sub edi, eax
mov dword [esp + 0x3c], edi
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x5c]
mov esi, dword [esp + 0x40]
add eax, 2
mov dword [esp + 0x2c], eax
add esi, 2
lea eax, [edi + ecx]
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x5c]
add eax, esi
mov esi, dword [esp + 0x14]
mov dword [esp + 0x50], eax
mov dword [esp + 0x34], eax
lea eax, [edi + edx]
add eax, ecx
cmp byte [ebp + 0x10], 0
mov dword [esp + 0x40], eax
mov dword [esp + 0x38], eax
je 0x4715ed
push ecx
mov eax, esp
push ecx
push 0x50012503
sub esp, 0x10
mov dword [eax], esi
mov edi, esp
lea esi, [esp + 0x48]
push 0x7404
movsd dword es:[edi], dword [esi]
push ecx
mov eax, esp
mov ecx, ebx
movsd dword es:[edi], dword [esi]
mov dword [eax], str.BUTTON
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call fcn.00471e1b
mov edi, dword [esp + 0x3c]
mov eax, dword [esp + 0x40]
sub eax, dword [esp + 0x30]
mov edx, dword [ebx + 0xe8]
add edi, eax
mov eax, dword [esp + 0x50]
cmp eax, dword [esp + 0x10]
mov dword [esp + 0x3c], edi
cmovle eax, dword [esp + 0x10]
mov ecx, eax
mov esi, dword [ebx + 0x110]
mov eax, dword [ebx + 0x16c]
add esi, ecx
mov dword [esp + 0x1c], esi
test eax, eax
jle 0x47162d
mov esi, dword [ebp + 0xc]
sub esi, eax
sub esi, edx
mov dword [esp + 0x1c], esi
and dword [ebx + 0x16c], 0
xor edx, edx
and dword [ebx + 0x170], 0
xor ecx, ecx
mov eax, dword [ebx + 0x5c]
mov edi, dword [esp + 0x18]
test eax, eax
je 0x4717d5
test byte [ebx + 0x44], 0x30
jne 0x4717d5
test eax, eax
je 0x4717d5
xor eax, eax
mov dword [esp + 0x84], edi
mov dword [esp + 0x10], eax
mov ecx, dword [ebx + 0x60]
push 0x800
push dword [esp + 0x18]
mov dword [esp + 0x58], esi
push dword [eax + ecx + 4]
mov esi, dword [ebx + 0xc0]
call fcn.004708fb
push 0x270f
push esi
push pe_nt_image_headers32
push 0xffffffffffffffff
push dword [esp + 0x24]
lea eax, [esp + 0x5c]
mov ecx, ebx
push eax
call fcn.004707c6
mov eax, dword [ebx + 0x174]
mov edx, dword [esp + 0x48]
cmp edx, eax
mov esi, dword [esp + 0x1c]
mov ecx, dword [esp + 0x4c]
cmovl edx, eax
mov eax, dword [ebx + 0xf0]
mov dword [esp + 0x80], esi
lea eax, [edx + eax*2]
add esi, eax
mov eax, dword [ebx + 0xf4]
lea eax, [ecx + eax*2]
mov ecx, dword [ebx + 0x30]
add eax, edi
mov dword [esp + 0x8c], eax
mov eax, dword [ebx + 0x34]
mov dword [esp + 0x30], eax
mov dword [esp + 0x30], eax
mov eax, esi
cdq
idiv ecx
sub ecx, edx
add ecx, esi
cmp byte [ebp + 0x10], 0
mov dword [esp + 0x40], ecx
mov dword [esp + 0x88], ecx
je 0x471748
push ecx
mov ecx, dword [esp + 0x18]
lea esi, [esp + 0x84]
mov eax, esp
push ecx
push 0x50012000
sub esp, 0x10
mov edi, esp
mov dword [eax], ecx
mov eax, dword [esp + 0x3c]
movzx eax, ax
push eax
movsd dword es:[edi], dword [esi]
push ecx
mov eax, esp
mov ecx, ebx
movsd dword es:[edi], dword [esi]
mov dword [eax], str.BUTTON
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call fcn.00471e1b
mov edi, dword [esp + 0x18]
mov ecx, dword [esp + 0x40]
mov eax, dword [ebx + 0x10c]
lea esi, [ecx + eax]
sub ecx, dword [esp + 0x50]
add ecx, dword [ebx + 0x16c]
cmp dword [ebx + 0xac], 0
mov dword [esp + 0x1c], esi
lea edx, [ecx + eax]
mov dword [ebx + 0x16c], edx
jne 0x47177b
mov eax, dword [esp + 0x20]
mov dword [ebx + 0xac], eax
mov esi, dword [ebx + 0x60]
mov ecx, dword [esp + 0x10]
mov eax, dword [ebx + 0x64]
cmp eax, dword [ecx + esi]
mov esi, dword [esp + 0x1c]
jne 0x471798
mov eax, dword [esp + 0x20]
mov dword [ebx + 0xac], eax
mov ecx, dword [esp + 0x8c]
mov eax, dword [ebx + 0x170]
sub ecx, edi
cmp ecx, eax
jle 0x4717b3
mov dword [ebx + 0x170], ecx
jmp 0x4717b5
mov ecx, eax
add dword [esp + 0x10], 8
mov eax, dword [esp + 0x20]
inc eax
mov dword [esp + 0x20], eax
add eax, 0xffff8bf5
cmp eax, dword [ebx + 0x5c]
mov eax, dword [esp + 0x10]
jb 0x47166d
cmp dword [ebx + 0x48], 0
je 0x4719a2
movaps xmm0, xmmword [0xa98710]
xor eax, eax
movups xmmword [esp + 0x90], xmm0
mov dword [esp + 0xd0], 8
movaps xmm0, xmmword [0xa98730]
movups xmmword [esp + 0xa0], xmm0
mov dword [esp + 0xd4], 0x86
movaps xmm0, xmmword [0xa987a0]
movups xmmword [esp + 0xb0], xmm0
mov dword [esp + 0x10], eax
movaps xmm0, xmmword [0xa98790]
movups xmmword [esp + 0xc0], xmm0
mov eax, dword [esp + eax*4 + 0x90]
test dword [ebx + 0x48], eax
mov eax, dword [esp + 0x10]
mov dword [esp + 0x50], esi
je 0x471986
movzx eax, word [esp + eax*4 + 0x98]
mov esi, dword [ebx + 0xc0]
push 0x800
push dword [esp + 0x18]
push eax
call fcn.004708fb
push 0x270f
push esi
push pe_nt_image_headers32
push 0xffffffffffffffff
push dword [esp + 0x24]
lea eax, [esp + 0x70]
mov ecx, ebx
push eax
call fcn.004707c6
mov eax, dword [ebx + 0x174]
mov edx, dword [esp + 0x5c]
cmp edx, eax
mov esi, dword [esp + 0x1c]
mov ecx, dword [esp + 0x60]
cmovl edx, eax
mov eax, dword [ebx + 0xf0]
mov dword [esp + 0x64], esi
mov dword [esp + 0x68], edi
lea eax, [edx + eax*2]
add esi, eax
mov eax, dword [ebx + 0xf4]
lea eax, [ecx + eax*2]
mov ecx, dword [ebx + 0x30]
add eax, edi
mov dword [esp + 0x48], eax
mov dword [esp + 0x70], eax
mov eax, dword [ebx + 0x34]
mov dword [esp + 0x30], eax
mov dword [esp + 0x30], eax
mov eax, esi
cdq
idiv ecx
sub esi, edx
add ecx, esi
cmp byte [ebp + 0x10], 0
mov dword [esp + 0x40], ecx
mov dword [esp + 0x6c], ecx
je 0x471929
push ecx
mov ecx, dword [esp + 0x18]
lea esi, [esp + 0x68]
mov eax, esp
push ecx
push 0x50012000
sub esp, 0x10
mov edi, esp
mov dword [eax], ecx
mov eax, dword [esp + 0x2c]
movsd dword es:[edi], dword [esi]
movzx eax, word [esp + eax*4 + 0xb0]
push eax
push ecx
movsd dword es:[edi], dword [esi]
mov eax, esp
mov ecx, ebx
movsd dword es:[edi], dword [esi]
mov dword [eax], str.BUTTON
movsd dword es:[edi], dword [esi]
call fcn.00471e1b
mov edi, dword [esp + 0x18]
mov ecx, dword [esp + 0x40]
mov eax, dword [ebx + 0x10c]
lea esi, [ecx + eax]
sub ecx, dword [esp + 0x50]
add ecx, eax
mov dword [esp + 0x1c], esi
add dword [ebx + 0x16c], ecx
cmp dword [ebx + 0xac], 0
jne 0x47195c
mov eax, dword [esp + 0x10]
mov eax, dword [esp + eax*4 + 0x94]
mov dword [ebx + 0xac], eax
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + eax*4 + 0x94]
cmp dword [ebx + 0x64], ecx
jne 0x471972
mov dword [ebx + 0xac], ecx
mov ecx, dword [esp + 0x48]
sub ecx, edi
cmp ecx, dword [ebx + 0x170]
jle 0x471986
mov dword [ebx + 0x170], ecx
add eax, 3
mov dword [esp + 0x10], eax
cmp eax, 0x12
jb 0x471837
mov edx, dword [ebx + 0x16c]
mov ecx, dword [ebx + 0x170]
test edx, edx
jle 0x4719b6
mov eax, dword [ebx + 0x10c]
sub edx, eax
mov dword [ebx + 0x16c], edx
sub esi, eax
cmp esi, dword [esp + 0x28]
mov edx, dword [ebx + 0x88]
cmovle esi, dword [esp + 0x28]
cmp dword [esp + 0x3c], ecx
mov dword [esp + 0x1c], esi
cmovge ecx, dword [esp + 0x3c]
add edi, ecx
mov ecx, dword [ebx + 0xe8]
mov dword [esp + 0x20], ecx
test edx, edx
je 0x471b5b
mov eax, dword [ebx + 0x13c]
add edi, eax
mov dword [ebx + 0x164], edi
add edi, eax
cmp dword [ebx + 0x84], 0
mov dword [esp + 0x18], edi
jne 0x471a11
test byte [ebx + 0x44], 4
mov dword [esp + 0x10], ecx
je 0x471a92
mov eax, dword [ebx + 0x114]
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x30], edi
mov dword [esp + 0x10], ecx
lea esi, [eax + ecx]
add eax, edi
cmp byte [ebp + 0x10], 0
mov dword [esp + 0x34], esi
mov esi, dword [esp + 0x1c]
mov dword [esp + 0x38], eax
je 0x471a84
push ecx
mov eax, esp
lea esi, [esp + 0x30]
push ecx
push 0x5000000d
sub esp, 0x10
mov edi, esp
mov dword [eax], 0x51e784
push 0x7409
movsd dword es:[edi], dword [esi]
push ecx
mov eax, esp
mov ecx, str.STATIC
movsd dword es:[edi], dword [esi]
mov dword [eax], ecx
mov ecx, ebx
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call fcn.00471e1b
mov eax, dword [ebx + 0xe8]
mov edx, dword [ebx + 0x88]
mov edi, dword [esp + 0x18]
mov esi, dword [esp + 0x1c]
mov dword [esp + 0x10], eax
mov ecx, dword [ebx + 0x128]
add ecx, dword [esp + 0x34]
mov dword [esp + 0x20], ecx
mov eax, dword [ebp + 0xc]
sub eax, dword [esp + 0x10]
sub eax, ecx
push eax
push dword [ebx + 0xc0]
lea eax, [esp + 0x34]
push ecx
push ecx
push dword [esp + 0x24]
mov ecx, ebx
push edx
push eax
call fcn.00471dc8
mov edx, dword [eax + 4]
mov ecx, dword [eax]
mov eax, dword [ebx + 0x114]
cmp edx, eax
mov dword [esp + 0x30], edi
cmovl edx, eax
mov eax, dword [esp + 0x20]
add edi, edx
mov dword [esp + 0x2c], eax
add eax, ecx
mov dword [esp + 0x18], edi
cmp byte [ebp + 0x10], 0
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], edi
je 0x471b48
mov cl, byte [esp + 0x27]
mov eax, str.SysLink
test cl, cl
mov edx, str.STATIC
cmove eax, edx
mov dword [esp + 0x40], eax
jne 0x471b0b
push dword [esp + 0x14]
mov ecx, ebx
call fcn.00471e92
push ecx
mov ecx, dword [esp + 0x18]
lea esi, [esp + 0x30]
mov eax, esp
push ecx
push 0x50000080
sub esp, 0x10
mov edi, esp
mov dword [eax], ecx
push 0x7408
movsd dword es:[edi], dword [esi]
push ecx
mov ecx, dword [esp + 0x64]
mov eax, esp
movsd dword es:[edi], dword [esi]
mov dword [eax], ecx
mov ecx, ebx
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call fcn.00471e1b
mov edi, dword [esp + 0x18]
mov esi, dword [esp + 0x1c]
mov eax, dword [esp + 0x34]
mov ecx, dword [ebx + 0xe8]
cmp eax, esi
mov dword [esp + 0x20], ecx
cmovg esi, eax
mov dword [esp + 0x1c], esi
cmp dword [ebx + 0x78], 0
mov dword [esp + 0x10], ecx
je 0x471c42
test byte [ebx + 0x44], 0x40
mov dword [esp + 0x10], ecx
je 0x471c42
mov eax, dword [ebx + 0x13c]
add edi, eax
mov dword [ebx + 0x168], edi
add edi, eax
lea eax, [ecx + ecx]
mov ecx, dword [ebp + 0xc]
sub ecx, eax
lea eax, [esp + 0x2c]
push ecx
push dword [ebx + 0xc0]
push ecx
push ecx
push dword [esp + 0x24]
mov ecx, ebx
push dword [ebx + 0x78]
push eax
call fcn.00471dc8
mov edx, dword [esp + 0x20]
mov ecx, dword [eax]
mov eax, dword [eax + 4]
add ecx, edx
mov dword [esp + 0x30], edi
add edi, eax
cmp byte [ebp + 0x10], 0
mov dword [esp + 0x2c], edx
mov dword [esp + 0x34], ecx
mov dword [esp + 0x18], edi
mov dword [esp + 0x38], edi
je 0x471c33
mov al, byte [esp + 0x27]
mov ecx, str.SysLink
test al, al
mov edx, str.STATIC
cmove ecx, edx
mov dword [esp + 0x40], ecx
jne 0x471bf6
push dword [esp + 0x14]
mov ecx, ebx
call fcn.00471e92
push ecx
mov ecx, dword [esp + 0x18]
lea esi, [esp + 0x30]
mov eax, esp
push ecx
push 0x50000080
sub esp, 0x10
mov edi, esp
mov dword [eax], ecx
push 0x7407
movsd dword es:[edi], dword [esi]
push ecx
mov ecx, dword [esp + 0x64]
mov eax, esp
movsd dword es:[edi], dword [esi]
mov dword [eax], ecx
mov ecx, ebx
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call fcn.00471e1b
mov edi, dword [esp + 0x18]
mov esi, dword [esp + 0x1c]
mov ecx, dword [esp + 0x34]
mov eax, dword [ebx + 0xe8]
cmp ecx, esi
mov dword [esp + 0x10], eax
cmovg esi, ecx
push dword [esp + 0x14]
add edi, dword [ebx + 0xec]
call fcn.004f5e43
mov eax, dword [esp + 0x14]
pop ecx
mov ecx, dword [esp + 0x7c]
add eax, esi
mov dword [ecx], eax
mov eax, ecx
mov dword [ecx + 4], edi
mov ecx, dword [esp + 0xdc]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004efcea
mov esp, ebp
pop ebp
ret 0xc