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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x58
mov eax, dword [0x1009b01c]
xor eax, esp
mov dword [esp + 0x54], eax
movaps xmm0, xmmword [0x1008baa0]
push esi
mov esi, ecx
mov dword [esp + 0x3c], 1
movups xmmword [esp + 0x2c], xmm0
push edi
mov edi, dword [ebp + 8]
mov ecx, dword [esi + 0x18]
mov dword [esp + 0x1c], edi
mov byte [esp + 0x13], 0
cmp byte [ecx + 0x58], 0
mov eax, dword [ecx + 0xfc]
mov eax, dword [esp + eax*4 + 0x30]
mov dword [esp + 0x14], eax
mov eax, dword [sym.imp.USER32.dll_InflateRect]
jne 0x10031f58
movups xmm0, xmmword [esi + 0x78]
movups xmmword [esp + 0x20], xmm0
push dword [ecx + 0x134]
push dword [ecx + 0x130]
lea ecx, [esp + 0x28]
push ecx
call eax
push edi
lea eax, [esp + 0x24]
mov ecx, esi
push eax
call fcn.10031b90
mov dl, al
mov eax, dword [esi + 0x34]
mov byte [esp + 0x13], dl
mov byte [esp + 0x30], dl
test dl, dl
je 0x10031e50
test eax, eax
jne 0x10031e50
mov dword [esp + 0x31], 0x1000001
mov word [esp + 0x35], 0x101
mov byte [esp + 0x37], 1
mov byte [esp + 0x38], dl
jmp 0x10031e70
mov dword [esp + 0x31], 0x1000000
mov word [esp + 0x35], 0x101
mov byte [esp + 0x37], 1
mov byte [esp + 0x38], dl
test dl, dl
je 0x10031e8b
test eax, eax
jne 0x10031e8b
mov dword [esp + 0x39], 0x1000001
mov word [esp + 0x3d], 0x101
mov byte [esp + 0x3f], 1
mov byte [esp + 0x40], 1
jmp 0x10031eb3
mov dword [esp + 0x39], 0x1000000
mov word [esp + 0x3d], 0x101
mov byte [esp + 0x3f], 1
test dl, dl
je 0x10031eae
test eax, eax
jne 0x10031eae
mov byte [esp + 0x40], 1
jmp 0x10031eb3
mov byte [esp + 0x40], 0
mov edi, dword [esi + 0x18]
mov ecx, dword [esp + 0x14]
add ecx, ecx
mov byte [esp + 0x41], 0
mov byte [esp + 0x42], dl
movzx eax, byte [edi + 0x58]
add eax, ecx
mov dword [esp + 0x43], 0x1010100
mov byte [esp + 0x47], 1
mov dh, byte [esp + eax*4 + 0x30]
mov byte [esi + 0x1bcc], dh
movzx eax, byte [edi + 0x58]
add eax, ecx
mov al, byte [esp + eax*4 + 0x31]
mov byte [esi + 0x1bcd], al
movzx eax, byte [edi + 0x58]
add eax, ecx
mov al, byte [esp + eax*4 + 0x32]
mov byte [esi + 0x1bce], al
mov byte [esp + 0x12], al
movzx eax, byte [edi + 0x58]
add eax, ecx
mov byte [esi + 0x1bd0], dl
mov ecx, edi
mov al, byte [esp + eax*4 + 0x33]
mov byte [esi + 0x1bcf], al
cmp byte [edi + 0x104], 0
je 0x10031f4f
cmp dword [edi + 0xfc], 2
mov edi, dword [esp + 0x1c]
jne 0x10031f53
test dh, dh
sete al
cmp byte [esp + 0x12], 0
mov byte [esi + 0x1bcc], al
sete al
mov byte [esi + 0x1bce], al
jmp 0x10031f53
mov edi, dword [esp + 0x1c]
mov eax, dword [sym.imp.USER32.dll_InflateRect]
cmp dword [esi + 0x34], 0
je 0x10032207
movups xmm0, xmmword [esi + 0xa8]
movups xmmword [esp + 0x20], xmm0
push dword [ecx + 0x134]
push dword [ecx + 0x130]
lea ecx, [esp + 0x28]
push ecx
call eax
push edi
lea eax, [esp + 0x24]
mov ecx, esi
push eax
call fcn.10031b90
cmp byte [esp + 0x13], 0
jne 0x10031f9d
test al, al
je 0x10032207
mov ecx, dword [esi + 0x34]
xor edx, edx
mov dword [esp + 0x18], edx
test ecx, ecx
jle 0x100320cc
mov eax, dword [esp + 0x14]
add eax, eax
mov dword [esp + 0x14], eax
nop dword [eax + eax]
mov eax, dword [esi + 0x18]
add edx, edx
movups xmm0, xmmword [esi + edx*8 + 0xa8]
movups xmmword [esp + 0x30], xmm0
push dword [eax + 0x134]
push dword [eax + 0x130]
lea eax, [esp + 0x38]
push eax
call dword [sym.imp.USER32.dll_InflateRect]
push edi
lea eax, [esp + 0x34]
mov ecx, esi
push eax
call fcn.10031b90
mov ecx, dword [esp + 0x18]
xor edi, edi
mov byte [esp + 0x12], al
mov eax, dword [esi + 0x34]
cmp eax, 1
jne 0x1003200d
lea edi, [eax + 2]
jmp 0x10032027
dec eax
test ecx, ecx
je 0x1003201d
cmp ecx, eax
je 0x1003201f
mov edi, 1
jmp 0x10032027
cmp ecx, eax
mov eax, 2
cmove edi, eax
mov eax, dword [esi + 0x18]
lea edx, [esi + ecx*4]
add edx, ecx
movzx ecx, byte [eax + 0x58]
add ecx, dword [esp + 0x14]
lea eax, [edi + ecx*4]
add eax, ecx
mov al, byte [eax*4 + 0x1008b9e0]
mov byte [edx + 0x19d8], al
mov eax, dword [esi + 0x18]
movzx ecx, byte [eax + 0x58]
add ecx, dword [esp + 0x14]
lea eax, [edi + ecx*4]
add eax, ecx
mov al, byte [eax*4 + 0x1008b9e1]
mov byte [edx + 0x19d9], al
mov eax, dword [esi + 0x18]
movzx ecx, byte [eax + 0x58]
add ecx, dword [esp + 0x14]
lea eax, [edi + ecx*4]
add eax, ecx
mov al, byte [eax*4 + 0x1008b9e2]
mov byte [edx + 0x19da], al
mov eax, dword [esi + 0x18]
movzx ecx, byte [eax + 0x58]
add ecx, dword [esp + 0x14]
lea eax, [edi + ecx*4]
mov edi, dword [esp + 0x1c]
add eax, ecx
mov ecx, dword [esp + 0x18]
add ecx, 0x52c
mov al, byte [eax*4 + 0x1008b9e3]
mov byte [edx + 0x19db], al
lea eax, [esi + ecx*4]
mov dl, byte [esp + 0x12]
mov byte [ecx + eax], dl
mov edx, dword [esp + 0x18]
mov ecx, dword [esi + 0x34]
inc edx
mov dword [esp + 0x18], edx
cmp edx, ecx
jl 0x10031fc0
mov eax, dword [esi + 0x18]
cmp dword [eax + 0xfc], 2
jne 0x10032207
cmp byte [eax + 0x104], 0
je 0x10032207
mov al, byte [eax + 0x58]
cmp ecx, 1
jle 0x10032207
test al, al
lea eax, [esi + ecx*4]
je 0x100321ad
add ecx, eax
cmp byte [ecx + 0x19d3], 0
sete al
mov byte [ecx + 0x19d3], al
mov ecx, dword [esi + 0x34]
lea eax, [esi + ecx*4]
add ecx, eax
cmp byte [ecx + 0x19d5], 0
sete al
mov byte [ecx + 0x19d5], al
mov ecx, dword [esi + 0x34]
lea eax, [esi + ecx*4]
add ecx, eax
cmp byte [ecx + 0x19d4], 0
sete al
mov byte [ecx + 0x19d4], al
mov ecx, dword [esi + 0x34]
lea eax, [esi + ecx*4]
add ecx, eax
cmp byte [ecx + 0x19d6], 0
sete al
mov byte [ecx + 0x19d6], al
cmp byte [esi + 0x19d8], 0
sete al
cmp byte [esi + 0x19da], 0
mov byte [esi + 0x19d8], al
sete al
cmp byte [esi + 0x19d9], 0
mov byte [esi + 0x19da], al
sete al
cmp byte [esi + 0x19db], 0
mov byte [esi + 0x19d9], al
sete al
mov byte [esi + 0x19db], al
pop edi
pop esi
mov ecx, dword [esp + 0x54]
xor ecx, esp
call fcn.1004d19f
mov esp, ebp
pop ebp
ret 4
add ecx, eax
cmp byte [ecx + 0x19d3], 0
sete al
mov byte [ecx + 0x19d3], al
mov ecx, dword [esi + 0x34]
lea eax, [esi + ecx*4]
add ecx, eax
cmp byte [ecx + 0x19d5], 0
sete al
mov byte [ecx + 0x19d5], al
mov ecx, dword [esi + 0x34]
lea eax, [esi + ecx*4]
add ecx, eax
cmp byte [ecx + 0x19d4], 0
sete al
mov byte [ecx + 0x19d4], al
mov ecx, dword [esi + 0x34]
lea eax, [esi + ecx*4]
add ecx, eax
cmp byte [ecx + 0x19d6], 0
sete al
mov byte [ecx + 0x19d6], al
mov ecx, dword [esp + 0x5c]
pop edi
pop esi
xor ecx, esp
call fcn.1004d19f
mov esp, ebp
pop ebp
ret 4