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

Disassembly:
sub esp, 0x48
mov eax, dword [esp + 0x5c]
mov edx, dword [esp + 0x54]
sub eax, edx
mov edx, dword [esp + 0x50]
push ebx
mov ebx, ecx
mov ecx, dword [edx + 0x10]
inc eax
push ebp
mov ebp, dword [esp + 0x68]
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x60]
push esi
mov esi, dword [edx + 8]
shl ecx, 2
push edi
mov edi, dword [ebx + 0x14]
sub ebp, eax
mov eax, ecx
fld qword [esp + 0x7c]
fcomp qword [0x4e7f50]
add edi, 0x28
inc ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
fnstsw ax
and ecx, 3
test ah, 1
rep movsb byte es:[edi], byte [esi]
je 0x4600b7
mov ecx, dword [esp + 0x84]
mov eax, dword [esp + 0x80]
push ecx
mov ecx, dword [esp + 0x80]
push eax
mov eax, dword [esp + 0x80]
push ecx
mov ecx, dword [esp + 0x80]
push eax
mov eax, dword [esp + 0x80]
push ecx
mov ecx, dword [esp + 0x80]
push eax
mov eax, dword [esp + 0x80]
push ecx
mov ecx, dword [esp + 0x80]
push eax
push ecx
push edx
mov edx, dword [esp + 0x84]
push edx
mov ecx, ebx
call fcn.00460330
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x48
ret 0x2c
fld qword [esp + 0x7c]
call fcn.004a3514
mov edi, dword [ebx + 8]
mov esi, eax
mov eax, edi
cdq
idiv esi
mov ecx, eax
cmp ecx, 1
mov dword [esp + 0x70], ecx
jge 0x4600e1
mov dword [esp + 0x70], 1
mov ecx, dword [esp + 0x70]
mov eax, dword [esp + 0x14]
cdq
idiv ecx
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x14]
cdq
idiv edi
test edx, edx
je 0x4600fb
inc dword [esp + 0x10]
mov eax, ebp
cdq
idiv ecx
mov edi, eax
mov eax, ebp
cdq
idiv ecx
test edx, edx
je 0x46010c
inc edi
mov eax, dword [esp + 0x68]
test edi, edi
mov dword [esp + 0x7c], eax
jle 0x460317
mov edx, ecx
mov dword [esp + 0x40], ebp
neg edx
mov dword [esp + 0x54], edx
mov dword [esp + 0x44], edi
mov eax, dword [esp + 0x64]
cmp ebp, ecx
mov dword [esp + 0x20], eax
mov dword [esp + 0x6c], ebp
jle 0x460140
mov dword [esp + 0x6c], ecx
mov edi, dword [esp + 0x10]
test edi, edi
jle 0x4602f8
mov ebp, esi
mov edx, dword [esp + 0x14]
imul ebp, eax
mov eax, ecx
mov dword [esp + 0x48], ebp
neg eax
mov dword [esp + 0x50], eax
mov eax, ecx
imul eax, esi
mov dword [esp + 0x24], ebp
mov dword [esp + 0x4c], eax
mov dword [esp + 0x28], edx
mov dword [esp + 0x3c], edi
jmp 0x460180
mov ecx, dword [esp + 0x70]
mov edx, dword [esp + 0x28]
cmp edx, ecx
mov dword [esp + 0x38], edx
jle 0x46018e
mov edx, ecx
mov dword [esp + 0x38], edx
xor edi, edi
test edx, edx
mov dword [esp + 0x1c], edi
jle 0x46025b
mov ecx, dword [esp + 0x6c]
test ecx, ecx
jle 0x460246
mov edx, dword [esp + 0x7c]
mov dword [esp + 0x18], 0
mov dword [esp + 0x34], ecx
lea eax, [ecx + edx]
shl eax, 2
mov dword [esp + 0x30], eax
mov ecx, dword [esp + 0x60]
mov ebp, dword [esp + 0x20]
mov edx, dword [ecx + 0xc]
mov ecx, dword [edx + eax - 4]
mov edx, dword [esp + 0x1c]
add ecx, edx
xor edx, edx
test esi, esi
mov dl, byte [ecx + ebp]
mov ecx, dword [esp + 0x84]
movsx edx, byte [edx + ecx]
jle 0x460217
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x2c], esi
xor eax, eax
mov ebp, dword [ebx + 0x10]
mov ebp, dword [ecx + ebp]
add ebp, eax
inc eax
cmp eax, esi
mov byte [edi + ebp], dl
jl 0x4601f5
mov eax, dword [esp + 0x2c]
add ecx, 4
dec eax
mov dword [esp + 0x2c], eax
jne 0x4601f3
mov eax, dword [esp + 0x30]
mov ebp, dword [esp + 0x18]
lea ecx, [esi*4]
add ebp, ecx
mov ecx, dword [esp + 0x34]
sub eax, 4
dec ecx
mov dword [esp + 0x18], ebp
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], ecx
jne 0x4601c2
mov edx, dword [esp + 0x38]
mov ebp, dword [esp + 0x48]
mov ecx, dword [esp + 0x6c]
mov eax, dword [esp + 0x1c]
add edi, esi
inc eax
cmp eax, edx
mov dword [esp + 0x1c], eax
jl 0x46019c
jmp 0x46025f
mov ecx, dword [esp + 0x6c]
mov edi, dword [ebx + 0x14]
push 0
imul ecx, esi
imul edx, esi
push edi
mov edi, dword [ebx + 4]
push edi
mov edi, dword [ebx + 8]
push edi
mov edi, dword [esp + 0x78]
push 0
push 0
push 0
push ecx
push edx
mov edx, dword [esp + 0xa0]
sub edx, edi
mov ecx, dword [esp + 0x9c]
imul edx, esi
mov eax, dword [esp + 0x48]
add edx, ecx
mov ecx, dword [esp + 0x98]
sub eax, ebp
push edx
mov edx, dword [esp + 0x84]
add eax, ecx
push eax
push edx
call dword [sym.imp.GDI32.dll_SetDIBitsToDevice]
mov ecx, dword [esp + 0x4c]
mov edx, dword [esp + 0x24]
mov eax, dword [esp + 0x70]
mov edi, dword [esp + 0x20]
add edx, ecx
mov ecx, dword [esp + 0x28]
mov dword [esp + 0x24], edx
mov edx, dword [esp + 0x50]
add edi, eax
mov eax, dword [esp + 0x3c]
add ecx, edx
dec eax
mov dword [esp + 0x20], edi
mov dword [esp + 0x28], ecx
mov dword [esp + 0x3c], eax
jne 0x460178
mov edx, dword [esp + 0x54]
mov ecx, dword [esp + 0x70]
mov ebp, dword [esp + 0x40]
mov eax, dword [esp + 0x7c]
add ebp, edx
add eax, ecx
mov dword [esp + 0x40], ebp
mov dword [esp + 0x7c], eax
mov eax, dword [esp + 0x44]
dec eax
mov dword [esp + 0x44], eax
jne 0x46012c
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x48
ret 0x2c