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

Disassembly:
sub esp, 0x150
push ebx
push ebp
push esi
xor ebx, ebx
push edi
mov dword [esp + 0x30], ebx
mov dword [esp + 0x104], ebx
mov dword [esp + 0x100], ebx
mov dword [esp + 0x2c], ebx
call fcn.100a95a0
test eax, eax
je 0x100410ca
mov esi, dword [esp + 0x164]
push esi
call fcn.10082b50
test eax, eax
je 0x100410c5
push esi
call fcn.10084820
lea eax, [esp + 0x34]
push eax
push 3
call sym.GEAR32PO.OCX_GPb_settings_hook_func_get
lea ecx, [esp + 0x2c]
push ecx
call fcn.100d4290
mov eax, dword [esp + 0x2c]
mov edi, dword [esp + 0x168]
cmp eax, ebx
je 0x10040398
push edi
call fcn.100ab1e0
test eax, eax
jne 0x10040398
cmp dword [esp + 0x34], ebx
je 0x10040398
push edi
call sub.GDI32.dll_CreateCompatibleDC
push 0xa
push edi
mov ebp, eax
call sub.GDI32.dll_GetDeviceCaps
push eax
push 8
push edi
call sub.GDI32.dll_GetDeviceCaps
push eax
push edi
call sub.GDI32.dll_CreateCompatibleBitmap
push eax
push ebp
mov dword [esp + 0x10c], eax
call sub.GDI32.dll_SelectObject
push 0xcc0020
push ebx
push ebx
push edi
push 0xa
push edi
mov dword [esp + 0x118], eax
call sub.GDI32.dll_GetDeviceCaps
push eax
push 8
push edi
call sub.GDI32.dll_GetDeviceCaps
push eax
push ebx
push ebx
push ebp
call sub.GDI32.dll_BitBlt
jmp 0x1004039a
mov ebp, edi
lea edx, [esp + 0x10c]
push ebx
push edx
push 5
push esi
call fcn.10085dd0
cmp dword [esp + 0x10c], ebx
je 0x100403c2
lea eax, [esp + 0x114]
push eax
push ebp
call fcn.100ab200
lea ecx, [esp + 0x110]
push ecx
push 2
call sym.GEAR32PO.OCX_GPb_settings_hook_func_get
lea edx, [esp + 0x3c]
push edx
push esi
call fcn.10083bd0
lea eax, [esp + 0x4c]
push eax
call fcn.100422f0
push ebp
call fcn.100ab1e0
test eax, eax
je 0x100403fb
lea ecx, [esp + 0x30]
push ecx
push esi
call fcn.10083b90
cmp dword [esp + 0x30], ebx
jne 0x1004040c
lea edx, [esp + 0x30]
push edx
push esi
call fcn.10083b70
lea eax, [esp + 0x90]
push eax
push esi
call fcn.10083a40
lea ecx, [esp + 0x80]
push ecx
push esi
call fcn.10083a80
lea edx, [esp + 0x7c]
push edx
push esi
call fcn.10083a20
lea eax, [esp + 0x64]
lea ecx, [esp + 0x60]
push eax
lea edx, [esp + 0x60]
push ecx
push edx
push esi
call fcn.10084750
lea eax, [esp + 0x70]
lea ecx, [esp + 0x74]
push eax
push ecx
push esi
call fcn.10084df0
lea edx, [esp + 0x68]
push edx
push esi
call fcn.10084450
lea eax, [esp + 0x6c]
push eax
push esi
call fcn.10084c10
lea ecx, [esp + 0x58]
push ecx
push esi
call fcn.100845a0
lea edx, [esp + 0xb0]
push edx
push ebp
push esi
call fcn.10085870
lea eax, [esp + 0xf4]
push ebx
push eax
push 1
push esi
call fcn.10085dd0
lea ecx, [esp + 0xf0]
push ebx
push ecx
push 2
push esi
call fcn.10085dd0
push esi
call sym.GEAR32PO.OCX_GPb_bits_per_pixel_get
dec eax
neg eax
sbb eax, eax
inc eax
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x58]
cmp eax, ebx
je 0x100404d0
cmp dword [esp + 0x7c], 0x1f4
je 0x100404d0
mov dword [esp + 0x58], ebx
cmp dword [esp + 0x70], ebx
jne 0x100404ed
lea edx, [esp + 0x80]
lea eax, [esp + 0xb0]
push edx
push eax
push ebp
push esi
call fcn.10083d40
mov eax, dword [esp + 0x110]
cmp eax, ebx
je 0x10040504
lea ecx, [esp + 0xb0]
push ecx
push ebp
push esi
call eax
mov eax, dword [esp + 0x80]
mov ecx, dword [esp + 0xb0]
cmp eax, ecx
jle 0x1004051d
mov dword [esp + 0xb0], eax
mov eax, dword [esp + 0x84]
mov ebx, dword [esp + 0xb4]
cmp eax, ebx
jle 0x10040538
mov ebx, eax
mov dword [esp + 0xb4], ebx
mov eax, dword [esp + 0x88]
mov edx, dword [esp + 0xb8]
cmp eax, edx
jge 0x10040553
mov edx, eax
mov dword [esp + 0xb8], edx
mov ecx, dword [esp + 0x8c]
mov eax, dword [esp + 0xbc]
cmp ecx, eax
jge 0x1004056e
mov eax, ecx
mov dword [esp + 0xbc], eax
cmp edx, dword [esp + 0xb0]
jle 0x10041031
cmp eax, ebx
jle 0x10041031
mov eax, dword [esp + 0x58]
cmp eax, 1
je 0x10040599
cmp eax, 3
mov dword [esp + 0x10], 0
jne 0x100405a1
mov dword [esp + 0x10], 1
mov edx, dword [esp + 0x164]
mov dword [esp + 0x44], edx
call fcn.100a0c60
mov edi, dword [esp + 0xb8]
mov ebx, dword [esp + 0xb0]
mov esi, dword [esp + 0xb4]
mov ecx, dword [esp + 0x98]
mov edx, dword [esp + 0x90]
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0xbc]
sub edi, ebx
mov ebx, dword [esp + 0x94]
sub eax, esi
mov esi, dword [esp + 0x9c]
mov dword [esp + 0xdc], eax
mov eax, dword [esp + 0x80]
sub esi, ebx
mov ebx, dword [esp + 0x88]
sub ecx, edx
mov edx, dword [esp + 0x84]
sub ebx, eax
mov eax, dword [esp + 0x8c]
inc ecx
sub eax, edx
mov edx, dword [esp + 0x80]
mov dword [esp + 0xd4], eax
mov eax, dword [esp + 0xb0]
sub eax, edx
inc esi
imul eax, ecx
cdq
idiv ebx
mov edx, dword [esp + 0x90]
mov dword [esp + 0xd8], edi
mov dword [esp + 0xc8], ecx
mov dword [esp + 0xcc], esi
mov dword [esp + 0xd0], ebx
add eax, edx
xor edx, edx
test eax, eax
setle dl
dec edx
and edx, eax
mov eax, dword [esp + 0xb4]
mov dword [esp + 0xa0], edx
mov edx, dword [esp + 0x84]
sub eax, edx
imul eax, esi
cdq
idiv dword [esp + 0xd4]
mov edx, dword [esp + 0x94]
add eax, edx
xor edx, edx
test eax, eax
setle dl
dec edx
and edx, eax
mov eax, edi
imul eax, ecx
mov dword [esp + 0xa4], edx
xor edx, edx
div ebx
cmp eax, 1
mov dword [esp + 0xa8], eax
ja 0x100406c6
mov dword [esp + 0xa8], 1
mov eax, dword [esp + 0xdc]
xor edx, edx
imul eax, esi
div dword [esp + 0xd4]
cmp eax, 1
mov dword [esp + 0xac], eax
ja 0x100406f0
mov dword [esp + 0xac], 1
mov esi, dword [esp + 0x164]
push esi
call sym.GEAR32PO.OCX_GPb_width_get
mov ecx, dword [esp + 0xa0]
mov edx, dword [esp + 0xa8]
add edx, ecx
cmp edx, eax
jle 0x10040743
push esi
call sym.GEAR32PO.OCX_GPb_width_get
sub eax, dword [esp + 0xa8]
test eax, eax
jle 0x10040738
push esi
call sym.GEAR32PO.OCX_GPb_width_get
sub eax, dword [esp + 0xa8]
mov dword [esp + 0xa0], eax
jmp 0x10040743
mov dword [esp + 0xa0], 0
push esi
call sym.GEAR32PO.OCX_GPb_height_get
mov ecx, dword [esp + 0xa4]
mov edx, dword [esp + 0xac]
add edx, ecx
cmp edx, eax
jle 0x10040788
push esi
call sym.GEAR32PO.OCX_GPb_height_get
sub eax, dword [esp + 0xac]
test eax, eax
jle 0x1004077f
push esi
call sym.GEAR32PO.OCX_GPb_height_get
mov ecx, eax
sub ecx, dword [esp + 0xac]
jmp 0x10040781
xor ecx, ecx
mov dword [esp + 0xa4], ecx
mov eax, dword [esp + 0xa0]
mov edi, dword [esp + 0xa8]
mov edx, dword [esp + 0xac]
add edi, eax
add edx, ecx
push esi
mov dword [esp + 0xac], edi
mov dword [esp + 0xb0], edx
call sym.GEAR32PO.OCX_GPb_bits_per_pixel_get
mov ebx, eax
push ebx
push ebp
mov dword [esp + 0x40], ebx
call fcn.100aaaa0
mov edi, eax
push ebp
mov dword [esp + 0x2c], edi
call fcn.100aab10
push ebp
mov dword [esp + 0x24], eax
call fcn.100ab1e0
cmp edi, 0x10
mov dword [esp + 0x78], eax
jne 0x100407fd
push esi
call sym.GEAR32PO.OCX_GPb_DIB_pointer_get
push eax
call fcn.10032b90
cmp eax, 0x1f7
jne 0x100407fd
mov edi, 0x18
mov dword [esp + 0x28], edi
mov eax, dword [esp + 0x68]
test ah, 0x80
je 0x10040813
mov edi, 1
mov dword [esp + 0x20], edi
mov dword [esp + 0x28], edi
mov ecx, dword [esp + 0x5c]
test ecx, ecx
je 0x10040847
mov ecx, dword [esp + 0xd4]
mov edx, dword [esp + 0xcc]
cmp ecx, edx
jge 0x1004083f
mov edx, dword [esp + 0xd0]
mov ecx, dword [esp + 0xc8]
cmp edx, ecx
jl 0x10040847
mov dword [esp + 0x5c], 0
cmp dword [esp + 0x20], 8
jne 0x10040861
cmp eax, 2
jne 0x10040861
cmp ebx, 4
jne 0x10040861
mov edi, 8
mov dword [esp + 0x28], edi
mov eax, dword [esp + 0xb0]
mov edx, dword [esp + 0x80]
mov ebx, dword [esp + 0xb4]
mov ecx, dword [esp + 0x84]
sub eax, edx
sub ebx, ecx
mov ecx, dword [esp + 0xdc]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0xd8]
mov dword [esp + 0x1c], 0
mov dword [esp + 0xe4], eax
mov eax, dword [esp + 0x38]
cmp eax, 1
mov dword [esp + 0xe8], ecx
jne 0x1004095d
cmp dword [esp + 0x7c], 0x1f4
jne 0x1004095d
push esi
mov dword [esp + 0x20], 1
call sym.GEAR32PO.OCX_GPb_width_get
inc eax
mov dword [esp + 0xe4], eax
mov eax, dword [esp + 0x10]
test eax, eax
je 0x10040920
mov eax, dword [esp + 0xd0]
mov edx, dword [esp + 0xd4]
mov ecx, dword [esp + 0x84]
mov dword [esp + 0xd4], eax
mov eax, dword [esp + 0xb4]
mov dword [esp + 0xd0], edx
sub eax, ecx
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0xd8]
mov dword [esp + 0xe8], eax
mov eax, dword [esp + 0x58]
dec eax
je 0x1004094d
dec eax
je 0x1004093d
dec eax
jne 0x1004095d
mov ebx, dword [esp + 0xb0]
mov eax, dword [esp + 0x80]
jmp 0x1004095b
mov ebx, dword [esp + 0x8c]
mov eax, dword [esp + 0xbc]
jmp 0x1004095b
mov ebx, dword [esp + 0x88]
mov eax, dword [esp + 0xb8]
sub ebx, eax
mov eax, dword [esp + 0x5c]
xor esi, esi
test eax, eax
mov dword [esp + 0xf8], esi
jne 0x1004098c
mov eax, dword [esp + 0x58]
test eax, eax
jne 0x1004098c
push ebp
call fcn.100abe10
test eax, eax
je 0x1004098c
mov esi, 1
mov dword [esp + 0xf8], esi
push esi
push edi
push ebp
call fcn.100aac10
mov dword [esp + 0xec], eax
mov eax, dword [esp + 0x20]
cmp eax, 1
jbe 0x100409f8
mov eax, dword [esp + 0x40]
test eax, eax
je 0x100409f8
cmp dword [esp + 0x5c], 2
jne 0x100409f8
mov ecx, dword [esp + 0xd4]
mov eax, dword [esp + 0xcc]
cmp ecx, eax
jge 0x100409f8
mov edx, dword [esp + 0xd0]
mov eax, dword [esp + 0xc8]
cmp edx, eax
jge 0x100409f8
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x100409ef
push esi
push 4
push ebp
call fcn.100aac10
mov dword [esp + 0xec], eax
mov edi, 4
mov dword [esp + 0x28], edi
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x18]
push eax
lea edx, [esp + 0x48]
push ecx
push edx
call fcn.100427d0
lea ecx, [esp + 0x44]
mov dword [esp + 0xc0], eax
mov eax, dword [esp + 0xec]
push eax
push ebx
push ecx
call fcn.10042970
mov dword [esp + 0xc4], eax
call fcn.10046b40
test eax, eax
jne 0x10040fca
push esi
push edi
push ebp
call fcn.100aac10
mov dword [esp + 0x40], eax
mov eax, edi
dec eax
je 0x10040a73
sub eax, 3
je 0x10040a69
sub eax, 4
je 0x10040a5f
mov dword [esp + 0x1c], 0x100433b0
jmp 0x10040a7b
mov dword [esp + 0x1c], 0x10043170
jmp 0x10040a7b
mov dword [esp + 0x1c], 0x10042ed0
jmp 0x10040a7b
mov dword [esp + 0x1c], 0x10042ab0
push ebp
call fcn.100aabc0
mov ebx, eax
call fcn.10032cc0
push edi
sub ebx, eax
call fcn.10032c40
sub ebx, eax
mov eax, dword [esp + 0x10]
mov dword [esp + 0x14], ebx
test eax, eax
je 0x10040ad6
mov esi, dword [esp + 0xdc]
mov eax, ebx
xor edx, edx
push edi
div esi
push eax
call fcn.10033100
mov ebx, eax
mov eax, dword [esp + 0xd8]
cmp ebx, eax
jbe 0x10040ac1
mov ebx, eax
mov dword [esp + 0x14], ebx
mov dword [esp + 0x108], ebx
mov dword [esp + 0x38], 0
jmp 0x10040b30
mov eax, dword [esp + 0x70]
mov ebx, dword [esp + 0xd8]
test eax, eax
je 0x10040afd
cmp edi, 8
ja 0x10040afd
cmp dword [esp + 0x38], 8
ja 0x10040afd
mov eax, dword [esp + 0x78]
test eax, eax
jne 0x10040afd
push 0x18
jmp 0x10040afe
push edi
push ebx
call fcn.10032be0
mov ecx, eax
xor edx, edx
mov eax, dword [esp + 0x14]
div ecx
mov esi, eax
mov eax, dword [esp + 0xdc]
cmp esi, eax
jbe 0x10040b1d
mov esi, eax
mov dword [esp + 0x14], esi
mov dword [esp + 0x108], 0
mov dword [esp + 0x38], esi
push edi
push esi
push ebx
mov dword [esp + 0x30], 0
call fcn.10032e10
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0xf8]
test eax, eax
je 0x10040b82
push 0
push 0
push 0
push edi
push esi
lea edx, [esp + 0x14c]
push ebx
push edx
call fcn.10032e40
lea eax, [esp + 0x54]
lea ecx, [esp + 0x24]
push eax
lea edx, [esp + 0x13c]
push ecx
push edx
call fcn.100abe50
mov eax, dword [esp + 0x54]
jmp 0x10040b95
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x48]
push eax
push ecx
call fcn.100a0c80
mov dword [esp + 0x54], eax
test eax, eax
jne 0x10040bbc
mov edx, dword [esp + 0x48]
mov eax, dword [esp + 0x10]
push edx
push eax
push 0xfffffc18
push 0x16f
push str.C:_accusoftgear_sourceDISPLAYdisplay.c
call fcn.10046940
jmp 0x10040fca
push 0
push 0
push 0
push edi
push esi
push ebx
push eax
call fcn.10032e40
mov ecx, dword [esp + 0x164]
mov edx, dword [esp + 0x54]
push ecx
push edx
call fcn.10042350
mov eax, dword [esp + 0x54]
push eax
call fcn.10032cd0
mov ecx, dword [esp + 0x54]
mov dword [esp + 0x10], eax
push ecx
call fcn.10032ac0
xor ecx, ecx
mov edx, dword [esp + 0x24]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x54]
push edx
mov cx, word [eax + 0xe]
mov edx, dword [eax + 4]
push ecx
push edx
push ebp
call fcn.100aab80
xor esi, esi
xor ebx, ebx
mov dword [esp + 0xe0], eax
mov eax, dword [esp + 0x40]
test eax, eax
je 0x10040c3a
mov ecx, dword [esp + 0x54]
mov eax, dword [esp + 0xdc]
sub eax, dword [ecx + 8]
mov dword [esp + 0x20], eax
jmp 0x10040c42
mov dword [esp + 0x20], 0
cmp edi, 1
jne 0x10040c60
mov ecx, dword [esp + 0x10]
mov edi, dword [esp + 0x18]
mov edx, ecx
or eax, 0xffffffff
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov ecx, dword [esp + 0x44]
lea eax, [esp + 0x128]
push eax
push ecx
call fcn.10083a40
lea edx, [esp + 0x118]
mov eax, dword [esp + 0x44]
push edx
push eax
call fcn.10083a80
lea ecx, [esp + 0x128]
lea edx, [esp + 0x118]
mov eax, dword [esp + 0x20]
push ecx
mov ecx, dword [esp + 0x18]
push edx
lea edx, [eax + ecx]
push edx
push eax
lea eax, [esp + 0x54]
push eax
call dword [esp + 0x30]
call fcn.10046b40
test eax, eax
jne 0x10040fca
mov eax, dword [esp + 0x70]
test eax, eax
je 0x10040cc7
mov dword [esp + 0x3c], 2
mov edx, dword [esp + 0x3c]
mov eax, dword [esp + 0x30]
lea ecx, [esp + 0xfc]
push ecx
push edx
push eax
push ebp
call fcn.100a9de0
mov edi, eax
mov eax, dword [esp + 0x2c]
test eax, eax
je 0x10040d1c
push ebp
call fcn.100ab1e0
test eax, eax
jne 0x10040d1c
mov eax, dword [esp + 0x34]
test eax, eax
je 0x10040d1c
mov edx, dword [esp + 0x3c]
mov eax, dword [esp + 0x30]
lea ecx, [esp + 0xfc]
push ecx
mov ecx, dword [esp + 0x16c]
push edx
push eax
push ecx
call fcn.100a9de0
mov edi, eax
mov edx, dword [esp + 0x164]
push edi
push edx
call fcn.10084400
mov eax, dword [esp + 0xdc]
test eax, eax
jbe 0x10040f83
cmp ebx, dword [esp + 0xd8]
jae 0x10040f83
mov eax, dword [esp + 0x70]
test eax, eax
je 0x10040da1
mov edi, dword [esp + 0x28]
mov eax, dword [esp + 0x54]
push edi
lea edi, [esp + 0x84]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 4]
push edi
lea edi, [esp + 0x7c]
push edi
push eax
mov eax, dword [esp + 0x28]
push eax
push ecx
push edx
mov eax, dword [esp + 0x40]
push 0
push 0
push ecx
mov ecx, dword [esp + 0xdc]
push edx
mov edx, dword [esp + 0xdc]
add ecx, esi
add edx, ebx
push ecx
mov ecx, dword [esp + 0x78]
push edx
push eax
push ecx
push ebp
call fcn.10041130
jmp 0x10040e7a
mov eax, dword [esp + 0x58]
cmp eax, 1
jne 0x10040def
mov ecx, dword [esp + 0x54]
lea edi, [esp + 0x80]
push edi
mov edi, dword [esp + 0x28]
mov edx, dword [ecx + 8]
mov eax, dword [ecx + 4]
push edi
mov edi, dword [esp + 0x74]
push edi
push ecx
mov ecx, dword [esp + 0x28]
push ecx
mov ecx, dword [esp + 0xcc]
push edx
push eax
push 0
push 0
push edx
mov edx, dword [esp + 0xdc]
sub ecx, ebx
add edx, esi
push eax
sub ecx, eax
push edx
push ecx
jmp 0x10040e74
cmp eax, 2
jne 0x10040e36
mov ecx, dword [esp + 0x54]
lea edi, [esp + 0x80]
push edi
mov edi, dword [esp + 0x28]
mov eax, dword [ecx + 8]
mov edx, dword [ecx + 4]
push edi
mov edi, dword [esp + 0x74]
push edi
push ecx
mov ecx, dword [esp + 0x28]
push ecx
push eax
push edx
push 0
push 0
push eax
push edx
mov edx, dword [esp + 0xe8]
sub edx, esi
sub edx, eax
mov eax, dword [esp + 0xdc]
add eax, ebx
push edx
push eax
jmp 0x10040e74
mov eax, dword [esp + 0x54]
lea edi, [esp + 0x80]
push edi
mov edi, dword [esp + 0x28]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 4]
push edi
mov edi, dword [esp + 0x74]
push edi
push eax
mov eax, dword [esp + 0x28]
push eax
push ecx
push edx
push 0
push 0
push ecx
mov ecx, dword [esp + 0xdc]
push edx
mov edx, dword [esp + 0xdc]
add ecx, esi
add edx, ebx
push ecx
push edx
push ebp
call fcn.100a9960
mov edi, dword [esp + 0x38]
mov edx, dword [esp + 0x108]
mov eax, dword [esp + 0xdc]
add esi, edi
add ebx, edx
cmp esi, eax
jae 0x10040f83
mov edx, dword [esp + 0xd8]
cmp ebx, edx
jae 0x10040f7b
mov ecx, dword [esp + 0x54]
mov edi, eax
sub edi, esi
cmp edi, dword [ecx + 8]
jae 0x10040ec8
mov dword [ecx + 8], edi
mov ecx, dword [esp + 0x54]
mov eax, dword [esp + 0xdc]
mov dword [esp + 0x14], edi
jmp 0x10040f0c
mov edi, dword [ecx + 4]
sub edx, ebx
cmp edx, edi
jae 0x10040f08
mov edi, edx
mov dword [ecx + 4], edi
mov eax, dword [esp + 0x24]
push eax
mov eax, dword [esp + 0x58]
xor ecx, ecx
mov dword [esp + 0x18], edi
mov cx, word [eax + 0xe]
mov edx, dword [eax + 4]
push ecx
push edx
push ebp
call fcn.100aab80
mov ecx, dword [esp + 0x54]
mov dword [esp + 0xe0], eax
mov eax, dword [esp + 0xdc]
jmp 0x10040f0c
mov edi, dword [esp + 0x14]
mov edx, dword [esp + 0x40]
test edx, edx
je 0x10040f1b
sub eax, dword [ecx + 8]
sub eax, esi
jmp 0x10040f1d
mov eax, esi
mov ecx, dword [esp + 0x28]
add eax, ebx
cmp ecx, 1
mov dword [esp + 0x20], eax
jne 0x10040f4d
mov ecx, dword [esp + 0x10]
mov edi, dword [esp + 0x18]
mov edx, ecx
or eax, 0xffffffff
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov edi, dword [esp + 0x14]
mov eax, dword [esp + 0x20]
lea ecx, [esp + 0x128]
lea edx, [esp + 0x118]
push ecx
lea ecx, [eax + edi]
push edx
push ecx
lea edx, [esp + 0x50]
push eax
push edx
call dword [esp + 0x30]
call fcn.10046b40
test eax, eax
jne 0x10040f83
mov eax, dword [esp + 0xdc]
cmp esi, eax
jb 0x10040d39
mov eax, dword [esp + 0xfc]
mov ecx, dword [esp + 0x3c]
push eax
push ecx
push ebp
call fcn.100a9e40
mov eax, dword [esp + 0x2c]
test eax, eax
je 0x10040fca
push ebp
call fcn.100ab1e0
test eax, eax
jne 0x10040fca
mov eax, dword [esp + 0x34]
test eax, eax
je 0x10040fca
mov edx, dword [esp + 0xfc]
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x168]
push edx
push eax
push ecx
call fcn.100a9e40
mov eax, dword [esp + 0xf8]
test eax, eax
je 0x10040fe6
mov edx, dword [esp + 0x54]
mov eax, dword [esp + 0x24]
push edx
push eax
call fcn.100abec0
jmp 0x10040ff5
mov ecx, dword [esp + 0x54]
mov edx, dword [esp + 0x48]
push ecx
push edx
call fcn.100a1010
mov eax, dword [esp + 0xc4]
mov ecx, dword [esp + 0x48]
push eax
push ecx
call fcn.100a1010
mov edx, dword [esp + 0xc0]
mov eax, dword [esp + 0x48]
push edx
push eax
call fcn.100a1010
mov ecx, dword [esp + 0x48]
push ecx
call fcn.100a12c0
mov esi, dword [esp + 0x164]
mov edi, dword [esp + 0x168]
mov eax, dword [esp + 0x34]
test eax, eax
je 0x10041045
lea edx, [esp + 0xb0]
push edx
push ebp
push esi
call eax
mov eax, dword [esp + 0x10c]
test eax, eax
je 0x1004105e
lea eax, [esp + 0x114]
push eax
push ebp
call fcn.100ab230
mov eax, dword [esp + 0x2c]
test eax, eax
je 0x100410bf
push ebp
call fcn.100ab1e0
test eax, eax
jne 0x100410bf
mov eax, dword [esp + 0x34]
test eax, eax
je 0x100410bf
push 0xcc0020
push 0
push 0
push ebp
push 0xa
push edi
call sub.GDI32.dll_GetDeviceCaps
push eax
push 8
push edi
call sub.GDI32.dll_GetDeviceCaps
push eax
push 0
push 0
push edi
call sub.GDI32.dll_BitBlt
mov ecx, dword [esp + 0x100]
push ecx
push ebp
call sub.GDI32.dll_SelectObject
mov edx, dword [esp + 0x104]
push edx
call sub.GDI32.dll_DeleteObject
push ebp
call sub.GDI32.dll_DeleteDC
push esi
call fcn.100860a0
call fcn.100a95c0
call fcn.10046b40
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x150
ret 8