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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4da76b
mov eax, dword fs:[0]
push eax
sub esp, 0x8a0
mov eax, dword [0x51d260]
xor eax, esp
mov dword [esp + 0x898], eax
push ebx
push esi
push edi
mov eax, dword [0x51d260]
xor eax, esp
push eax
lea eax, [esp + 0x8b0]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
mov al, byte [edi]
xor ebx, ebx
mov esi, ecx
mov dword [esp + 0x34], ebx
mov dword [esp + 0x10], ebx
mov dword [esp + 0x20], ebx
cmp al, 0x61
jne 0x45cd1a
movzx eax, byte [esi + 0xe4]
mov ecx, 2
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x34], eax
movzx edx, byte [edi + ecx]
movzx eax, byte [esi + 0xe6]
mov dword [esp + 0x18], edx
cmp edx, eax
jne 0x45cbda
xor edx, edx
mov dword [esp + 0x18], edx
mov al, byte [edi + ecx + 1]
inc ecx
cmp al, byte [esi + 0xe5]
je 0x45cc27
mov dl, byte [esi + 0xe5]
lea ecx, [ecx]
cmp al, byte [esi + 0xe4]
jne 0x45cc02
inc dword [esp + 0x10]
mov ebx, dword [esp + 0x20]
jmp 0x45cc1a
movzx ebx, al
movzx eax, byte [esi + 0xe6]
mov dword [esp + 0x20], ebx
cmp ebx, eax
jne 0x45cc1a
xor ebx, ebx
mov dword [esp + 0x20], ebx
mov al, byte [edi + ecx + 1]
inc ecx
cmp al, dl
jne 0x45cbf0
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x34]
imul eax, dword [esp + 0x10]
add eax, ebx
imul eax, dword [esp + 0x34]
add eax, edx
mov edx, dword [esp + 0x1c]
xor ebx, ebx
inc ecx
mov dword [esp + 0x10], ebx
mov dword [esp + 0x20], ebx
cmp edx, 0x13
ja case.default.0x45cc4d
jmp dword [edx*4 + 0x45d580]
mov dword [esi + 0x3c], eax
jmp case.default.0x45cc4d
mov dword [esi + 0x40], eax
jmp case.default.0x45cc4d
mov dword [esi + 0x44], eax
jmp case.default.0x45cc4d
mov dword [esi + 0x1c], eax
jmp case.default.0x45cc4d
mov dword [esi + 0x48], eax
jmp case.default.0x45cc4d
mov dword [esi + 0x2c], eax
jmp case.default.0x45cc4d
mov dword [esi + 8], eax
jmp case.default.0x45cc4d
mov byte [esi + 0xdc], al
jmp case.default.0x45cc4d
mov dword [esi + 0x14], eax
jmp case.default.0x45cc4d
mov dword [esi + 0x18], eax
jmp case.default.0x45cc4d
mov dword [esi + 0x30], eax
jmp case.default.0x45cc4d
mov dword [esi + 0x10], eax
jmp case.default.0x45cc4d
mov dword [esi + 0x28], eax
jmp case.default.0x45cc4d
mov dword [esi + 0x24], eax
jmp case.default.0x45cc4d
mov dword [esi + 0xc], eax
jmp case.default.0x45cc4d
mov dword [esi + 0x34], eax
jmp case.default.0x45cc4d
mov dword [esi + 0x38], eax
jmp case.default.0x45cc4d
mov dword [esi + 0x20], eax
jmp case.default.0x45cc4d
mov dword [esi + 4], eax
inc edx
cmp edx, 0x14
mov dword [esp + 0x1c], edx
jl 0x45cbc1
mov edx, dword [esi + 0x2c]
lea eax, [edx + ecx]
mov dword [esp + 0x34], ecx
lea ebx, [edi + ecx]
lea ecx, [edi + eax]
add eax, edx
test byte [esi + 0xdc], 4
mov dword [esp + 0x48], ecx
je 0x45cce9
lea ecx, [edi + eax]
add eax, dword [esi + 0x20]
jmp 0x45cceb
xor ecx, ecx
mov edx, dword [esp + 0x48]
add edi, eax
push edi
push ecx
push ebx
push edx
push edi
mov ecx, esi
call fcn.0045c3d0
test eax, eax
jne 0x45d554
mov eax, dword [esi + 0x1c]
push eax
push edi
lea ecx, [esi + 0xa0]
call fcn.0045c300
jmp 0x45d554
cmp al, 0x62
jne 0x45d078
lea ecx, [esp + 0x4c]
call fcn.00491ca9
movzx ecx, byte [edi + 2]
movzx edx, byte [edi + 3]
movzx eax, byte [edi + 4]
mov dword [esp + 0x8b8], ebx
movzx ebx, byte [edi + 1]
shl ebx, 8
or ebx, ecx
shl ebx, 8
or ebx, edx
shl ebx, 8
or ebx, eax
push ebx
push 0x40
mov dword [esp + 0x3c], 5
call dword [sym.imp.kernel32.dll_GlobalAlloc]
push eax
mov dword [esp + 0x20], eax
call dword [sym.imp.kernel32.dll_GlobalLock]
push ebx
add edi, 5
push edi
push eax
call fcn.004a1ac0
mov edi, dword [esp + 0x28]
add esp, 0xc
push edi
call dword [sym.imp.kernel32.dll_GlobalUnlock]
lea ecx, [esp + 0x28]
push ecx
push 1
push edi
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
test eax, eax
je 0x45cde9
push edi
call dword [sym.imp.kernel32.dll_GlobalFree]
push 0
push 0
push 0x4e1cfc
call fcn.00494adf
lea edx, [esp + 0x94]
push 0x4e1cfc
push edx
call fcn.00409760
add esp, 8
push 0x4fa1f0
lea eax, [esp + 0x4a0]
mov ecx, 0x102
lea esi, [esp + 0x98]
lea edi, [esp + 0x4a0]
push eax
rep movsd dword es:[edi], dword [esi]
call fcn.004a068d
mov edx, dword [esp + 0x28]
lea ecx, [esp + 0x10]
push ecx
push 0x4ef3cc
push 0
push ebx
push edx
call dword [sym.imp.oleaut32.dll_OleLoadPicture]
test eax, eax
je 0x45ce62
push edi
call dword [sym.imp.kernel32.dll_GlobalFree]
mov eax, dword [esp + 0x28]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
push 0
push 0
push 0x4e1ce0
call fcn.00494adf
lea eax, [esp + 0x49c]
push 0x4e1ce0
push eax
call fcn.00409760
add esp, 8
mov ecx, 0x102
lea esi, [esp + 0x49c]
lea edi, [esp + 0x94]
rep movsd dword es:[edi], dword [esi]
push 0x4fa1f0
lea ecx, [esp + 0x98]
push ecx
call fcn.004a068d
mov eax, dword [esp + 0x10]
mov edx, dword [eax]
mov edx, dword [edx + 0x18]
lea ecx, [esp + 0x2c]
push ecx
push eax
call edx
mov eax, dword [esp + 0x10]
mov ecx, dword [eax]
lea edx, [esp + 0x18]
push edx
push eax
mov eax, dword [ecx + 0x1c]
call eax
call fcn.004915c3
mov eax, dword [eax + 4]
mov eax, dword [eax + 0x20]
mov ecx, dword [eax + 0x20]
push ecx
call dword [sym.imp.user32.dll_GetDC]
push eax
call fcn.00491fe3
mov edx, dword [esp + 0x2c]
mov ebx, eax
mov eax, dword [esp + 0x18]
lea ecx, [esp + 0x3c]
push ecx
mov ecx, ebx
mov dword [esp + 0x40], edx
mov dword [esp + 0x44], eax
call fcn.0049562b
push ebx
lea ecx, [esp + 0x50]
call fcn.00408760
call fcn.004915c3
mov eax, dword [eax + 4]
mov eax, dword [eax + 0x20]
mov edx, dword [ebx + 4]
mov eax, dword [eax + 0x20]
push edx
push eax
call dword [sym.imp.user32.dll_ReleaseDC]
mov ecx, dword [esp + 0x3c]
mov eax, dword [esp + 0x40]
mov dword [esi + 0xc], eax
mov dword [esp + 0x70], eax
imul eax, ecx
push 0
push 0
mov edx, 0x18
mov dword [esi + 0x10], ecx
mov word [esp + 0x7e], dx
mov dword [esp + 0x74], ecx
lea ecx, [esp + 0x38]
push ecx
mov edx, 1
lea eax, [eax + eax*2]
mov word [esp + 0x80], dx
push 0
lea edx, [esp + 0x78]
mov dword [esp + 0x8c], eax
mov eax, dword [esp + 0x60]
push edx
push eax
mov dword [esp + 0x80], 0x28
mov dword [esp + 0x90], 0
call dword [sym.imp.gdi32.dll_CreateDIBSection]
mov ecx, dword [esp + 0x50]
mov ebx, eax
push ebx
push ecx
call dword [sym.imp.gdi32.dll_SelectObject]
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x10]
mov edx, dword [eax]
mov edi, ecx
push 0
neg edi
push edi
mov edi, dword [esp + 0x34]
push edi
mov edx, dword [edx + 0x20]
push ecx
mov ecx, dword [esp + 0x50]
push 0
push ecx
mov ecx, dword [esp + 0x54]
push ecx
mov ecx, dword [esp + 0x6c]
push 0
push 0
push ecx
push eax
call edx
test eax, eax
je 0x45d010
lea ecx, [esp + 0x4c]
call fcn.00492060
mov eax, dword [esp + 0x10]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [esp + 0x28]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [esp + 0x1c]
push eax
call dword [sym.imp.kernel32.dll_GlobalFree]
push ebx
call dword [sym.imp.gdi32.dll_DeleteObject]
push 0
push 0
push 0x4e1cc4
call fcn.00494adf
lea ecx, [esp + 0x49c]
push 0x4e1cc4
push ecx
call fcn.00409760
add esp, 8
push 0x4fa1f0
lea edx, [esp + 0x98]
mov ecx, 0x102
lea esi, [esp + 0x4a0]
lea edi, [esp + 0x98]
push edx
rep movsd dword es:[edi], dword [esi]
call fcn.004a068d
mov eax, dword [esp + 0x7c]
mov ecx, dword [esp + 0x30]
push eax
push ecx
lea ecx, [esi + 0xa0]
call fcn.0045c300
lea ecx, [esp + 0x4c]
mov byte [esi + 0xdc], 0
call fcn.00492060
mov eax, dword [esp + 0x10]
mov edx, dword [eax]
push eax
mov eax, dword [edx + 8]
call eax
mov eax, dword [esp + 0x28]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [esp + 0x1c]
push eax
call dword [sym.imp.kernel32.dll_GlobalFree]
push ebx
call dword [sym.imp.gdi32.dll_DeleteObject]
lea ecx, [esp + 0x4c]
mov dword [esp + 0x8b8], 0xffffffff
call fcn.00492076
jmp 0x45d554
cmp al, 0x63
jne 0x45d554
movzx eax, byte [edi + 1]
movzx ecx, byte [edi + 2]
movzx edx, byte [edi + 3]
shl eax, 8
or eax, ecx
movzx ecx, byte [edi + 4]
shl eax, 8
push ebx
or eax, edx
push ebx
shl eax, 8
or eax, ecx
push ebx
add edi, 5
push 0x4e15dc
mov dword [esp + 0x38], ebx
mov dword [esp + 0x44], 5
mov dword [esp + 0x70], eax
mov dword [esp + 0x6c], edi
mov dword [esp + 0x74], ebx
call fcn.0047ab40
push eax
mov dword [esp + 0x38], eax
call fcn.004781f0
mov edx, dword [esp + 0x38]
push edx
mov dword [esp + 0x34], eax
call fcn.004781f0
mov ecx, dword [esp + 0x3c]
mov dword [esp + 0x5c], eax
lea eax, [esp + 0x74]
push eax
push ecx
call fcn.0045c3b0
mov edx, dword [esp + 0x3c]
mov eax, dword [esp + 0x44]
push edx
push eax
call fcn.0047ae90
push ebx
push ebx
push ebx
lea ecx, [esp + 0x7c]
push ecx
lea edx, [esp + 0x4c]
push edx
mov edx, dword [esp + 0x58]
lea eax, [esp + 0x5c]
push eax
mov eax, dword [esp + 0x64]
lea ecx, [esp + 0x78]
push ecx
push edx
push eax
call fcn.00478ac0
add esp, 0x4c
cmp dword [esp + 0x48], 2
jne 0x45d2a1
mov eax, dword [esp + 0x38]
imul eax, dword [esp + 0x20]
lea ecx, [eax + eax*2]
push ecx
push ebx
mov dword [esp + 0x1c], eax
call dword [sym.imp.kernel32.dll_GlobalAlloc]
mov edi, dword [esp + 0x20]
mov ecx, dword [esp + 0x38]
dec edi
cmp edi, ebx
mov dword [esp + 0x10], eax
lea ecx, [ecx + ecx*2]
jl 0x45d189
mov edx, ecx
imul ecx, edi
neg edx
add ecx, eax
mov dword [esp + 0x30], edx
mov ebx, ecx
mov edx, dword [esp + 0x24]
push 0
push ebx
push edx
call fcn.0047b540
add ebx, dword [esp + 0x3c]
dec edi
add esp, 0xc
test edi, edi
jge 0x45d170
mov eax, dword [esp + 0x44]
mov ecx, dword [esp + 0x24]
push eax
push ecx
call fcn.0047bc80
lea edx, [esp + 0x4c]
push edx
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x34]
push ecx
call fcn.0047c200
mov eax, dword [esp + 0x28]
add esp, 0x14
lea edx, [eax + eax*2]
lea edi, [esi + 0xa0]
push edx
mov ecx, edi
call fcn.00409870
mov eax, dword [esp + 0x14]
lea ebx, [esi + 0x88]
push eax
mov ecx, ebx
call fcn.00409870
mov edx, dword [esp + 0x14]
lea ecx, [esi + 0x7c]
push edx
call fcn.00409870
mov eax, dword [ebx]
mov edx, dword [edi]
mov edi, dword [esi + 0x7c]
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x14]
lea eax, [eax + eax*2]
mov dword [esp + 0x14], eax
mov dword [esp + 0x28], 0
test eax, eax
jle 0x45d264
mov ebx, dword [esp + 0x10]
lea ecx, [ebx + 3]
sub ebx, edx
mov dword [esp + 0x2c], ebx
or ebx, 0xffffffff
sub ebx, edx
lea eax, [edx + 1]
mov edx, dword [esp + 0x30]
mov dword [esp + 0x3c], ebx
sub edx, edi
mov ebx, dword [esp + 0x2c]
movzx ebx, byte [ebx + eax + 1]
mov byte [eax - 1], bl
mov ebx, dword [esp + 0x2c]
movzx ebx, byte [ebx + eax]
mov byte [eax], bl
movzx ebx, byte [ecx - 3]
mov byte [eax + 1], bl
mov byte [edx + edi], 1
cmp byte [ecx], 0
setne bl
inc dword [esp + 0x28]
mov byte [edi], bl
mov ebx, dword [esp + 0x3c]
add eax, 3
add ebx, eax
add ecx, 3
inc edi
cmp ebx, dword [esp + 0x14]
jl 0x45d224
mov eax, dword [esi + 0xa4]
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x20]
mov dword [esi + 0x1c], eax
mov eax, dword [esp + 0x10]
mov dword [esi + 0x10], ecx
mov ecx, dword [esi + 0x98]
mov dword [esi + 0xc], edx
mov edx, dword [esi + 0x80]
push eax
mov byte [esi + 0xdc], 3
mov dword [esi + 0x20], ecx
mov dword [esi + 0x2c], edx
call dword [sym.imp.kernel32.dll_GlobalFree]
xor ebx, ebx
cmp dword [esp + 0x48], 6
jne 0x45d554
mov eax, dword [esp + 0x38]
imul eax, dword [esp + 0x20]
lea ecx, [eax*4]
push ecx
push ebx
mov dword [esp + 0x1c], eax
call dword [sym.imp.kernel32.dll_GlobalAlloc]
mov ecx, dword [esp + 0x38]
mov edi, dword [esp + 0x20]
add ecx, ecx
dec edi
add ecx, ecx
cmp edi, ebx
mov dword [esp + 0x10], eax
jl 0x45d30b
mov edx, ecx
imul ecx, edi
neg edx
add ecx, eax
mov dword [esp + 0x3c], edx
mov ebx, ecx
lea esp, [esp]
mov edx, dword [esp + 0x24]
push 0
push ebx
push edx
call fcn.0047b540
add ebx, dword [esp + 0x48]
dec edi
add esp, 0xc
test edi, edi
jge 0x45d2f0
xor ebx, ebx
mov eax, dword [esp + 0x44]
mov ecx, dword [esp + 0x24]
push eax
push ecx
call fcn.0047bc80
lea edx, [esp + 0x4c]
push edx
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x34]
push ecx
call fcn.0047c200
mov ecx, dword [esi + 0xa0]
mov eax, dword [esp + 0x28]
add esp, 0x14
lea edi, [eax + eax*2]
cmp ecx, ebx
jne 0x45d355
cmp dword [esi + 0xa4], ebx
jg 0x45d355
push edi
call fcn.004a208f
add esp, 4
jmp 0x45d375
mov eax, dword [esi + 0xa4]
xor edx, edx
cmp eax, ebx
setl dl
push edi
push ecx
dec edx
and eax, edx
mov dword [esi + 0xa4], eax
call fcn.004a1e25
add esp, 8
mov dword [esi + 0xa4], edi
mov dword [esi + 0xa0], eax
mov ecx, dword [esi + 0x94]
mov eax, dword [esp + 0x14]
lea edi, [eax + eax*2]
cmp ecx, ebx
jne 0x45d3a5
cmp dword [esi + 0x98], ebx
jg 0x45d3a5
push edi
call fcn.004a208f
add esp, 4
jmp 0x45d3c5
mov eax, dword [esi + 0x98]
xor edx, edx
cmp eax, ebx
setl dl
push edi
push ecx
dec edx
and eax, edx
mov dword [esi + 0x98], eax
call fcn.004a1e25
add esp, 8
mov dword [esi + 0x98], edi
mov edi, dword [esp + 0x14]
mov dword [esi + 0x94], eax
mov ecx, dword [esi + 0x88]
cmp ecx, ebx
jne 0x45d3f2
cmp dword [esi + 0x8c], ebx
jg 0x45d3f2
push edi
call fcn.004a208f
add esp, 4
jmp 0x45d414
mov eax, dword [esi + 0x8c]
xor edx, edx
test eax, eax
setl dl
push edi
push ecx
dec edx
and eax, edx
mov dword [esi + 0x8c], eax
call fcn.004a1e25
add esp, 8
xor ebx, ebx
mov dword [esi + 0x8c], edi
mov edi, dword [esp + 0x14]
mov dword [esi + 0x88], eax
mov ecx, dword [esi + 0x7c]
cmp ecx, ebx
jne 0x45d43e
cmp dword [esi + 0x80], ebx
jg 0x45d43e
push edi
call fcn.004a208f
add esp, 4
jmp 0x45d45e
mov eax, dword [esi + 0x80]
xor edx, edx
test eax, eax
setl dl
push edi
push ecx
dec edx
and eax, edx
mov dword [esi + 0x80], eax
call fcn.004a1e25
add esp, 8
mov dword [esi + 0x7c], eax
mov dword [esi + 0x80], edi
mov edx, dword [esi + 0xa0]
mov ebx, dword [esi + 0x94]
mov edi, eax
mov eax, dword [esp + 0x14]
add eax, eax
add eax, eax
mov dword [esp + 0x14], eax
test eax, eax
jle 0x45d519
mov ecx, dword [esp + 0x28]
mov eax, dword [esp + 0x10]
add edi, ecx
lea ecx, [edx + 1]
mov dword [esp + 0x18], ebx
sub ebx, edx
mov edx, dword [esi + 0x88]
sub edx, dword [esi + 0x7c]
add eax, 3
mov dword [esp + 0x3c], edx
mov edx, 0xfffffffd
sub edx, dword [esp + 0x10]
mov dword [esp + 0x30], ebx
mov dword [esp + 0x2c], edx
lea ecx, [ecx]
movzx edx, byte [eax - 1]
mov ebx, dword [esp + 0x3c]
mov byte [ecx - 1], dl
movzx edx, byte [eax - 2]
mov byte [ecx], dl
movzx edx, byte [eax - 3]
mov byte [ecx + 1], dl
cmp byte [eax], 0xff
setne dl
mov byte [ebx + edi], dl
cmp byte [eax], 0
mov ebx, dword [esp + 0x18]
setne dl
mov byte [edi], dl
mov dl, byte [eax]
mov byte [ebx + 2], dl
mov ebx, dword [esp + 0x30]
mov byte [ebx + ecx], dl
mov ebx, dword [esp + 0x18]
mov byte [ebx], dl
mov edx, dword [esp + 0x2c]
add eax, 4
add ebx, 3
add edx, eax
add ecx, 3
inc edi
cmp edx, dword [esp + 0x14]
mov dword [esp + 0x18], ebx
jl 0x45d4c0
mov edx, dword [esi + 0xa4]
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x20]
mov dword [esi + 0x1c], edx
mov edx, dword [esp + 0x10]
mov dword [esi + 0x10], eax
mov eax, dword [esi + 0x98]
mov dword [esi + 0xc], ecx
mov ecx, dword [esi + 0x80]
push edx
mov byte [esi + 0xdc], 7
mov dword [esi + 0x20], eax
mov dword [esi + 0x2c], ecx
call dword [sym.imp.kernel32.dll_GlobalFree]
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x8b0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x898]
xor ecx, esp
call fcn.004a0abf
mov esp, ebp
pop ebp
ret 8