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

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push edi
cmp dword [esi + 0x1b8], ebx
jle 0x43157a
mov ecx, dword [sym.imp.USER32.dll_DestroyIcon]
xor edi, edi
nop dword [eax + eax]
mov eax, dword [esi + 0x1bc]
mov eax, dword [edi + eax + 0xc]
test eax, eax
je 0x431557
push eax
call ecx
mov ecx, dword [sym.imp.USER32.dll_DestroyIcon]
mov eax, dword [esi + 0x1bc]
mov eax, dword [edi + eax + 0x10]
test eax, eax
je 0x431568
push eax
call ecx
mov ecx, dword [sym.imp.USER32.dll_DestroyIcon]
inc ebx
add edi, 0x18
cmp ebx, dword [esi + 0x1b8]
jl 0x431540
mov eax, dword [esi + 0x17c]
test eax, eax
je 0x4315b0
push dword [esi + 0x184]
mov edi, dword [sym.imp.GDI32.dll_SelectObject]
push eax
call edi
push 0xd
call dword [sym.imp.GDI32.dll_GetStockObject]
push eax
push dword [esi + 0x17c]
call edi
push dword [esi + 0x17c]
call dword [sym.imp.GDI32.dll_DeleteDC]
mov eax, dword [esi + 0x180]
mov edi, dword [sym.imp.GDI32.dll_DeleteObject]
test eax, eax
je 0x4315c3
push eax
call edi
xor ebx, ebx
cmp dword [esi], ebx
jle 0x4315ed
xor ecx, ecx
mov dword [ebp - 4], ecx
nop
mov eax, dword [esi + 4]
push dword [ecx + eax + 0x118]
call edi
mov ecx, dword [ebp - 4]
inc ebx
add ecx, 0x124
mov dword [ebp - 4], ecx
cmp ebx, dword [esi]
jl 0x4315d0
xor ebx, ebx
cmp dword [esi + 0x14], ebx
jle 0x43161e
xor ecx, ecx
mov dword [ebp - 4], ecx
nop dword [eax]
mov eax, dword [esi + 0x18]
push dword [ecx + eax + 0x118]
call edi
mov ecx, dword [ebp - 4]
inc ebx
add ecx, 0x124
mov dword [ebp - 4], ecx
cmp ebx, dword [esi + 0x14]
jl 0x431600
xor ebx, ebx
cmp dword [esi + 0x28], ebx
jle 0x43164e
xor ecx, ecx
mov dword [ebp - 4], ecx
nop word [eax + eax]
mov eax, dword [esi + 0x2c]
push dword [ecx + eax + 0x118]
call edi
mov ecx, dword [ebp - 4]
inc ebx
add ecx, 0x124
mov dword [ebp - 4], ecx
cmp ebx, dword [esi + 0x28]
jl 0x431630
cmp dword [esi + 0x3c], 0
mov dword [ebp - 4], 0
jle 0x43167e
xor ebx, ebx
nop dword [eax]
mov eax, dword [esi + 0x40]
push dword [ebx + eax + 0x118]
call edi
mov eax, dword [ebp - 4]
lea ebx, [ebx + 0x124]
inc eax
mov dword [ebp - 4], eax
cmp eax, dword [esi + 0x3c]
jl 0x431660
cmp dword [esi + 0x50], 0
mov dword [ebp - 4], 0
jle 0x4316ae
xor ebx, ebx
nop dword [eax]
mov eax, dword [esi + 0x54]
push dword [ebx + eax + 0x118]
call edi
mov eax, dword [ebp - 4]
lea ebx, [ebx + 0x124]
inc eax
mov dword [ebp - 4], eax
cmp eax, dword [esi + 0x50]
jl 0x431690
cmp dword [esi + 0x64], 0
mov dword [ebp - 4], 0
jle 0x4316de
xor ebx, ebx
nop dword [eax]
mov eax, dword [esi + 0x68]
push dword [ebx + eax + 0x118]
call edi
mov eax, dword [ebp - 4]
lea ebx, [ebx + 0x124]
inc eax
mov dword [ebp - 4], eax
cmp eax, dword [esi + 0x64]
jl 0x4316c0
cmp dword [esi + 0x78], 0
mov dword [ebp - 4], 0
jle 0x43170e
xor ebx, ebx
nop dword [eax]
mov eax, dword [esi + 0x7c]
push dword [ebx + eax + 0x118]
call edi
mov eax, dword [ebp - 4]
lea ebx, [ebx + 0x124]
inc eax
mov dword [ebp - 4], eax
cmp eax, dword [esi + 0x78]
jl 0x4316f0
mov eax, dword [esi + 0x1bc]
mov dword [esi + 0x1b8], 0
mov dword [esi + 0x1c4], 0
test eax, eax
je 0x43173e
cmp byte [esi + 0x1c8], 0
jne 0x43173e
push eax
call fcn.004e21e3
add esp, 4
mov dword [esi + 0x1bc], 0
mov eax, dword [esi + 0x7c]
mov dword [esi + 0x78], 0
mov dword [esi + 0x84], 0
test eax, eax
je 0x431772
cmp byte [esi + 0x88], 0
jne 0x431772
push eax
call fcn.004e21e3
add esp, 4
mov dword [esi + 0x7c], 0
mov eax, dword [esi + 0x68]
mov dword [esi + 0x64], 0
mov dword [esi + 0x70], 0
test eax, eax
je 0x43179d
cmp byte [esi + 0x74], 0
jne 0x43179d
push eax
call fcn.004e21e3
add esp, 4
mov dword [esi + 0x68], 0
mov eax, dword [esi + 0x54]
mov dword [esi + 0x50], 0
mov dword [esi + 0x5c], 0
test eax, eax
je 0x4317c8
cmp byte [esi + 0x60], 0
jne 0x4317c8
push eax
call fcn.004e21e3
add esp, 4
mov dword [esi + 0x54], 0
mov eax, dword [esi + 0x40]
mov dword [esi + 0x3c], 0
mov dword [esi + 0x48], 0
test eax, eax
je 0x4317f3
cmp byte [esi + 0x4c], 0
jne 0x4317f3
push eax
call fcn.004e21e3
add esp, 4
mov dword [esi + 0x40], 0
mov eax, dword [esi + 0x2c]
mov dword [esi + 0x28], 0
mov dword [esi + 0x34], 0
test eax, eax
je 0x43181e
cmp byte [esi + 0x38], 0
jne 0x43181e
push eax
call fcn.004e21e3
add esp, 4
mov dword [esi + 0x2c], 0
mov eax, dword [esi + 0x18]
mov dword [esi + 0x14], 0
mov dword [esi + 0x20], 0
test eax, eax
je 0x431849
cmp byte [esi + 0x24], 0
jne 0x431849
push eax
call fcn.004e21e3
add esp, 4
mov dword [esi + 0x18], 0
mov eax, dword [esi + 4]
mov dword [esi], 0
mov dword [esi + 0xc], 0
test eax, eax
je 0x431873
cmp byte [esi + 0x10], 0
jne 0x431873
push eax
call fcn.004e21e3
add esp, 4
pop edi
mov dword [esi + 4], 0
pop esi
pop ebx
mov esp, ebp
pop ebp
ret