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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x1006f641
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xa0
xor eax, eax
mov dword [esp + 0x10], edx
push ebx
inc eax
mov dword [esp + 0x7c], ecx
mov dword [esp + 0x2c], eax
xor ebx, ebx
mov dword [esp + 0x24], 0xfa9b64fd
push esi
mov dword [esp + 0xc], 4
push edi
mov dword [esp + 0x14], ebx
jmp 0x10045464
mov eax, dword [esp + 0x14]
mov dword [esp + eax*4 + 0x7c], 0xffffffff
inc dword [esp + 0x14]
cmp dword [esp + 0x14], 2
jl 0x10045454
mov dword [esp + 0x10], 8
jmp 0x1004563c
mov dword [esp + 0x14], ebx
mov byte [esp + 0x1b], bl
cmp byte [esp + 0x1b], 0
je 0x100454a5
push ebx
push ebx
push 0x2452
push ebx
push 0x94
push ebx
push 0xe75
push 0xe95
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov dword [esp + 0x28], 0x24c2
cmp dword [esp + 0x28], 0xc08
jge 0x100455e8
mov edx, 0x1065ebbc
mov ecx, 0x1065f4f0
call fcn.10034434
push 0x11053fc4
mov ecx, 0x1065f4f0
call fcn.1002ec13
mov esi, ebx
cmp dword [0x1065ebd0], 0x10
mov eax, 0x1065ebbc
cmovae eax, dword [0x1065ebbc]
cmp byte [eax + esi], 0x31
jne 0x10045510
lea eax, [esi + 1]
mov ecx, 0x110540cc
mov dword [esp + 0x88], eax
lea eax, [esp + 0x88]
push eax
call fcn.1002f3a0
inc esi
cmp esi, 0xa
jl 0x100454db
push 0x213bd0
push 0xffffffffffffffff
push 0x10e26b90
call fcn.100574b0
add esp, 0xc
xor edx, edx
xor ecx, ecx
push ebx
push ebx
push ebx
push 0xb
call fcn.100452ad
mov eax, dword [0x110540c4]
add esp, 0x10
sub eax, dword [0x110540c0]
sar eax, 2
cmp eax, dword [0x11053fc4]
jne 0x100455dd
push 0x10007a44
call fcn.10055376
mov edx, dword [0x110540c4]
mov esi, dword [0x110540c0]
pop ecx
cmp esi, edx
je 0x10045592
sub edx, 4
cmp esi, edx
je 0x10045586
mov ecx, dword [esi]
mov eax, dword [edx]
mov dword [esi], eax
add esi, 4
mov dword [edx], ecx
cmp esi, edx
jne 0x10045570
mov edx, dword [0x110540c4]
mov esi, dword [0x110540c0]
sub edx, esi
mov edi, ebx
test edx, 0xfffffffc
jle 0x100455d5
mov ebx, 0x100077d0
push dword [esi + edi*4]
test edi, edi
mov eax, 0x10007a58
cmove eax, ebx
push eax
push 0x10007dc0
call fcn.100552a0
mov eax, dword [0x110540c4]
add esp, 0xc
mov esi, dword [0x110540c0]
inc edi
sub eax, esi
sar eax, 2
cmp edi, eax
jl 0x100455a3
xor ebx, ebx
mov eax, 0x100077d0
push eax
jmp 0x100455e2
push 0x10007a48
call fcn.10055376
pop ecx
xor eax, eax
inc eax
mov dword [esp + 0x14], eax
cmp dword [esp + 0x14], ebx
jl 0x10045638
mov dword [esp + 0xc], eax
mov dword [esp + 0xc], ebx
jmp 0x1004562c
mov byte [esp + 0x1b], bl
cmp byte [esp + 0x1b], 0
je 0x10045615
push 0x2385
call dword [sym.imp.GDI32.dll_UpdateColors]
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + eax*4 + 0x7c]
mov eax, dword [esp + 0x14]
mov dword [esp + eax*4 + 0x7c], ecx
xor eax, eax
inc dword [esp + 0xc]
inc eax
cmp dword [esp + 0xc], eax
jle 0x100455ff
dec dword [esp + 0x14]
jns 0x100455f5
dec dword [esp + 0x10]
cmp dword [esp + 0x10], 0xffffffea
jg 0x10045478
mov dword [esp + 0x7c], 0xfcb143e9
lea ecx, [esp + 0x64]
mov dword [esp + 0x24], 0xb058efa9
mov dword [esp + 0x38], ebx
push 2
call fcn.1000b098
mov dword [esp + 0xb4], ebx
xor edx, edx
mov dword [esp + 0x14], 0xfffffffe
inc edx
mov dword [esp + 0x20], 7
mov dword [esp + 0xc], ebx
jmp 0x10045692
mov eax, dword [esp + 0xc]
mov dword [esp + eax*4 + 0x30], ebx
inc dword [esp + 0xc]
cmp dword [esp + 0xc], edx
jl 0x10045686
mov dword [esp + 0xc], ebx
jmp 0x100456ad
mov ecx, dword [esp + 0xc]
mov eax, dword [esp + 0x64]
mov dword [eax + ecx*4], edx
inc dword [esp + 0xc]
cmp dword [esp + 0xc], 2
jl 0x1004569e
mov esi, dword [esp + 0x64]
push 5
pop edi
mov dword [esi + 4], ebx
mov dword [esp + 0xc], edx
mov dword [esp + 0x10], edi
mov eax, dword [esp + 0xc]
mov eax, dword [esp + 0xc]
mov eax, dword [esp + 0xc]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x10]
mov eax, dword [esi + 4]
mov ecx, dword [esp + eax*4 + 0x30]
mov eax, dword [esi + 4]
mov dword [esp + eax*4 + 0x30], ecx
mov eax, dword [esp + 0xc]
mov eax, dword [esi + 4]
mov eax, dword [esp + eax*4 + 0x30]
cmp edi, eax
sbb eax, eax
xor ecx, ecx
inc eax
cmp eax, 0xe3d4
setne cl
lea eax, [ecx - 1]
cmp eax, dword [esp + 0x14]
jge 0x1004570f
mov eax, dword [esp + 0xc]
inc dword [esi + 4]
cmp dword [esi + 4], 0
mov dword [esp + 0xc], ebx
jle 0x100456be
cmp dword [esp + 0x30], ebx
je 0x100458c6
mov dword [esp + 0x24], edx
lea ecx, [esp + 0x40]
push edx
call fcn.1000b098
mov byte [esp + 0xb4], 1
lea ecx, [esp + 0x4c]
mov dword [esp + 0x10], 8
push 1
call fcn.1000b098
push 2
lea ecx, [esp + 0x5c]
mov byte [esp + 0xb8], 2
call fcn.1000b098
xor edx, edx
mov dword [esp + 0xc], ebx
inc edx
jmp 0x1004577e
mov ecx, dword [esp + 0xc]
mov eax, dword [esp + 0x40]
mov dword [eax + ecx*4], 7
inc dword [esp + 0xc]
cmp dword [esp + 0xc], edx
jl 0x1004576b
mov dword [esp + 0xc], ebx
jmp 0x1004579d
mov ecx, dword [esp + 0xc]
mov eax, dword [esp + 0x4c]
mov dword [eax + ecx*4], 0x9c674f98
inc dword [esp + 0xc]
cmp dword [esp + 0xc], edx
jl 0x1004578a
mov dword [esp + 0xc], ebx
jmp 0x100457bc
mov eax, dword [esp + 0xc]
mov dword [esp + eax*4 + 0x98], 0xffffffff
inc dword [esp + 0xc]
cmp dword [esp + 0xc], 4
jl 0x100457a9
mov dword [esp + 0xc], ebx
jmp 0x100457dc
mov ecx, dword [esp + 0xc]
mov eax, dword [esp + 0x58]
mov dword [eax + ecx*4], 0x8d27
inc dword [esp + 0xc]
cmp dword [esp + 0xc], 2
jl 0x100457c9
mov eax, dword [esp + 0x24]
mov dword [esi + 4], eax
mov eax, dword [esp + 0x14]
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x30]
mov eax, dword [esp + 0x40]
dec ecx
neg ecx
sbb ecx, ecx
mov edx, dword [eax]
neg ecx
xor eax, eax
cmp ecx, edx
setge al
imul eax, edx
test eax, eax
jne 0x10045815
test edx, edx
je 0x1004581e
test edx, edx
je 0x1004581e
xor edx, edx
inc edx
jmp 0x10045820
mov edx, ebx
mov eax, dword [esp + 0x10]
xor ecx, ecx
cmp edx, eax
mov eax, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
setl cl
xor edx, edx
mov dword [esi + 4], ecx
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x40]
cmp ecx, dword [eax]
mov eax, dword [esp + 0x4c]
setne dl
mov dword [eax], edx
mov eax, dword [esp + 0xa4]
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x4c]
mov dword [esp + 0x30], ecx
mov dword [eax], ecx
mov eax, dword [esp + 0x10]
inc dword [esp + 0x20]
mov eax, dword [esp + 0x20]
mov eax, dword [esp + 0x14]
cmp dword [esp + 0x58], 0
mov dword [esp + 0xa4], 0xfffffff8
je 0x10045898
push dword [esp + 0x58]
call fcn.10055371
pop ecx
mov dword [esp + 0x58], ebx
mov dword [esp + 0x5c], ebx
mov dword [esp + 0x60], ebx
push dword [esp + 0x4c]
call fcn.10055371
pop ecx
push dword [esp + 0x40]
mov dword [esp + 0x50], ebx
mov dword [esp + 0x54], ebx
mov dword [esp + 0x58], ebx
call fcn.10055371
pop ecx
mov dword [esp + 0x40], ebx
mov dword [esp + 0x44], ebx
mov dword [esp + 0x48], ebx
jmp 0x100458fd
mov dword [esp + 0x24], 0x60b10f65
mov dword [esp + 0x28], 0x5f1f4743
mov edx, dword [esp + 0x14]
sub edx, dword [esi + 4]
mov eax, dword [esp + 0x24]
neg edx
sbb edx, edx
xor ecx, ecx
neg edx
cmp edx, eax
mov eax, dword [esp + 0x24]
setne cl
sub eax, ecx
neg eax
sbb eax, eax
inc eax
mov dword [esp + 0x28], eax
or dword [esp + 0xb4], 0xffffffff
push dword [esp + 0x64]
call fcn.10055371
mov edi, dword [esp + 0x20]
mov dword [esp + 0x68], ebx
mov dword [esp + 0x6c], ebx
mov dword [esp + 0x70], ebx
pop ecx
mov dword [esp + 0x24], 0xa5d732ad
xor ecx, ecx
inc ecx
mov dword [esp + 0xc], ecx
mov dword [esp + 0x14], 0x29bf3901
mov dword [esp + 0x10], 0x764361a6
mov dword [esp + 0x28], ebx
mov dword [esp + 0xc], ebx
jmp 0x1004595b
mov eax, dword [esp + 0xc]
mov dword [esp + eax*4 + 0x8c], 0xffffffff
inc dword [esp + 0xc]
cmp dword [esp + 0xc], 3
jl 0x10045948
mov dword [esp + 0xc], ebx
jmp 0x10045978
mov eax, dword [esp + 0xc]
mov dword [esp + eax*4 + 0x3c], 0x8884515f
inc dword [esp + 0xc]
cmp dword [esp + 0xc], ecx
jl 0x10045968
mov dword [esp + 0xc], 0x1a
jmp 0x10045994
mov dword [esp + 0x14], 0xe57ad95e
dec dword [esp + 0xc]
cmp dword [esp + 0xc], 4
jl 0x10045988
mov dword [esp + 0x14], ebx
cmp dword [esp + 0x14], 2
jge 0x10045a6c
mov dword [esp + 0x1c], ebx
mov dword [esp + 0xc], 2
cmp dword [esp + 0xc], ebx
jl 0x10045a5a
mov dword [esp + 0x20], 0x86a6c65b
xor ecx, ecx
mov eax, dword [esp + 0xc]
mov eax, dword [esp + eax*4 + 0x8c]
imul eax, dword [esp + 0x1c], 0x7ff7d5f0
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x10]
mov eax, dword [esp + 0xc]
mov eax, dword [esp + eax*4 + 0x8c]
mov eax, dword [esp + 0xc]
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
mov dword [esp + 0x3c], edx
mov eax, dword [esp + 0x8c]
cmp edx, eax
setl cl
mov dword [esp + 0x20], ecx
mov eax, dword [esp + 0x20]
inc eax
je 0x10045a22
cmp dword [esp + 0x3c], ebx
je 0x10045a22
xor eax, eax
inc eax
jmp 0x10045a24
mov eax, ebx
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x10], eax
cmp dword [esp + 0x10], ebx
je 0x10045a3e
cmp dword [esp + 0x20], ebx
jne 0x10045a5a
jmp 0x10045a50
mov byte [esp + 0x1b], bl
cmp byte [esp + 0x1b], 0
je 0x10045a50
push ebx
call dword [sym.imp.KERNEL32.dll_SetCommBreak]
dec dword [esp + 0xc]
jns 0x100459c0
inc dword [esp + 0x14]
cmp dword [esp + 0x14], 2
jl 0x100459aa
xor ecx, ecx
inc ecx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x10], ecx
push ecx
lea ecx, [esp + 0x74]
call fcn.1000b098
xor edx, edx
mov dword [esp + 0x10], ebx
inc edx
jmp 0x10045a96
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x70]
mov dword [eax + ecx*4], edx
inc dword [esp + 0x10]
cmp dword [esp + 0x10], edx
jl 0x10045a87
mov dword [esp + 0x10], ebx
jmp 0x10045ab2
mov dword [esp + 0x1c], 0xfff8
dec dword [esp + 0x1c]
dec dword [esp + 0x10]
cmp dword [esp + 0x10], 0xfffffff8
jg 0x10045aa2
cmp dword [esp + 0x70], 0
je 0x10045ad6
push dword [esp + 0x70]
call fcn.10055371
pop ecx
mov dword [esp + 0x70], ebx
mov dword [esp + 0x74], ebx
mov dword [esp + 0x78], ebx
push 7
pop esi
mov dword [esp + 0x1c], esi
lea ecx, [esp + 0x34]
mov dword [esp + 0x28], 0xea1b1489
call fcn.10044f13
mov dword [esp + 0xc], 0xfffffffc
mov dword [esp + 0xc], 0xffffffee
jmp 0x10045b52
mov dword [esp + 0x14], ebx
mov dword [esp + 0x14], ebx
jmp 0x10045b47
mov dword [esp + 0x10], ebx
mov dword [esp + 0x10], 0xa
jmp 0x10045b3d
mov byte [esp + 0x1b], bl
cmp byte [esp + 0x1b], 0
je 0x10045b39
push ebx
push 0xa90
push 0x487
push 0x1f57
call dword [sym.imp.GDI32.dll_SetPixel]
dec dword [esp + 0x10]
cmp dword [esp + 0x10], esi
jge 0x10045b18
dec dword [esp + 0x14]
cmp dword [esp + 0x14], 0xffffffe2
jne 0x10045b0a
inc dword [esp + 0xc]
cmp dword [esp + 0xc], 0xfffffff3
jne 0x10045b00
mov eax, dword [esp + 0x34]
xor edx, edx
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x2c]
mov eax, dword [esp + 0x34]
cmp ecx, eax
setg dl
mov dword [esp + 0x24], edx
xor edx, edx
mov ecx, dword [esp + 0x24]
mov eax, dword [esp + 0x2c]
cmp ecx, eax
mov eax, dword [esp + 0x2c]
setg dl
xor ecx, ecx
cmp edx, eax
mov eax, dword [esp + 0x38]
setle cl
xor edx, edx
sub ecx, 0xc65
cmp ecx, eax
setg dl
sub edx, 0xffff
neg edx
sbb edx, edx
inc edx
mov dword [esp + 0x24], edx
xor edx, edx
mov ecx, dword [esp + 0x20]
mov eax, dword [esp + 0x24]
cmp eax, ecx
setl dl
xor eax, eax
cmp edx, 0x857b
setg al
xor ecx, ecx
cmp eax, 0x9495
setge cl
sub ecx, dword [esp + 0x34]
mov eax, dword [esp + 0x38]
neg ecx
sbb ecx, ecx
inc ecx
imul eax, ecx
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x1c]
mov eax, dword [esp + 0x20]
mov eax, dword [esp + 0x20]
cmp eax, dword [esp + 0x2c]
je 0x10045bfe
cmp dword [esp + 0x2c], ebx
je 0x10045c01
xor ebx, ebx
inc ebx
mov eax, dword [esp + 0x28]
xor ecx, ecx
cmp ebx, eax
setle cl
xor edx, edx
imul ecx, dword [esp + 0x28]
mov eax, dword [esp + 0x34]
cmp ecx, 0xfffffff7
setle dl
xor ecx, ecx
cmp edx, eax
mov eax, edi
cdq
setg cl
mov dword [esp + 0x2c], ecx
mov ecx, 0x3e8
idiv ecx
mov ecx, dword [esp + 0x84]
mov esi, edx
mov edi, eax
call fcn.10044ea1
mov ecx, dword [esp + 0xac]
add eax, esi
add eax, edi
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret