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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4d8a9b
mov eax, dword fs:[0]
push eax
sub esp, 0x8a0
mov eax, dword [0x51b260]
xor eax, esp
mov dword [esp + 0x898], eax
push ebx
push esi
push edi
mov eax, dword [0x51b260]
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 0x45af0a
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 0x45adca
xor edx, edx
mov dword [esp + 0x18], edx
mov al, byte [edi + ecx + 1]
inc ecx
cmp al, byte [esi + 0xe5]
je 0x45ae17
mov dl, byte [esi + 0xe5]
lea ecx, [ecx]
cmp al, byte [esi + 0xe4]
jne 0x45adf2
inc dword [esp + 0x10]
mov ebx, dword [esp + 0x20]
jmp 0x45ae0a
movzx ebx, al
movzx eax, byte [esi + 0xe6]
mov dword [esp + 0x20], ebx
cmp ebx, eax
jne 0x45ae0a
xor ebx, ebx
mov dword [esp + 0x20], ebx
mov al, byte [edi + ecx + 1]
inc ecx
cmp al, dl
jne 0x45ade0
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.0x45ae3d
jmp dword [edx*4 + 0x45b770]
mov dword [esi + 0x2c], eax
jmp case.default.0x45ae3d
mov dword [esi + 8], eax
jmp case.default.0x45ae3d
mov byte [esi + 0xdc], al
jmp case.default.0x45ae3d
mov dword [esi + 0x14], eax
jmp case.default.0x45ae3d
mov dword [esi + 0x18], eax
jmp case.default.0x45ae3d
mov dword [esi + 0x30], eax
jmp case.default.0x45ae3d
mov dword [esi + 0x10], eax
jmp case.default.0x45ae3d
mov dword [esi + 0x28], eax
jmp case.default.0x45ae3d
mov dword [esi + 0x24], eax
jmp case.default.0x45ae3d
mov dword [esi + 0xc], eax
jmp case.default.0x45ae3d
mov dword [esi + 0x34], eax
jmp case.default.0x45ae3d
mov dword [esi + 0x38], eax
jmp case.default.0x45ae3d
mov dword [esi + 0x20], eax
jmp case.default.0x45ae3d
mov dword [esi + 0x3c], eax
jmp case.default.0x45ae3d
mov dword [esi + 0x40], eax
jmp case.default.0x45ae3d
mov dword [esi + 0x44], eax
jmp case.default.0x45ae3d
mov dword [esi + 0x1c], eax
jmp case.default.0x45ae3d
mov dword [esi + 0x48], eax
jmp case.default.0x45ae3d
mov dword [esi + 4], eax
inc edx
cmp edx, 0x14
mov dword [esp + 0x1c], edx
jl 0x45adb1
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 0x45aed9
lea ecx, [edi + eax]
add eax, dword [esi + 0x20]
jmp 0x45aedb
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.0045a5c0
test eax, eax
jne 0x45b744
mov eax, dword [esi + 0x1c]
push eax
push edi
lea ecx, [esi + 0xa0]
call fcn.0045a4f0
jmp 0x45b744
cmp al, 0x62
jne 0x45b268
lea ecx, [esp + 0x4c]
call fcn.004900d7
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.0049ff10
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 0x45afd9
push edi
call dword [sym.imp.kernel32.dll_GlobalFree]
push 0
push 0
push 0x4dfcfc
call fcn.00492f26
lea edx, [esp + 0x94]
push 0x4dfcfc
push edx
call fcn.00409ab0
add esp, 8
push 0x4f8248
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.0049eadd
mov edx, dword [esp + 0x28]
lea ecx, [esp + 0x10]
push ecx
push 0x4ed3cc
push 0
push ebx
push edx
call dword [sym.imp.oleaut32.dll_OleLoadPicture]
test eax, eax
je 0x45b052
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 0x4dfce0
call fcn.00492f26
lea eax, [esp + 0x49c]
push 0x4dfce0
push eax
call fcn.00409ab0
add esp, 8
mov ecx, 0x102
lea esi, [esp + 0x49c]
lea edi, [esp + 0x94]
rep movsd dword es:[edi], dword [esi]
push 0x4f8248
lea ecx, [esp + 0x98]
push ecx
call fcn.0049eadd
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.0048f9f1
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.00490433
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.00493a72
push ebx
lea ecx, [esp + 0x50]
call fcn.00408ab0
call fcn.0048f9f1
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 0x45b200
lea ecx, [esp + 0x4c]
call fcn.004904b0
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 0x4dfcc4
call fcn.00492f26
lea ecx, [esp + 0x49c]
push 0x4dfcc4
push ecx
call fcn.00409ab0
add esp, 8
push 0x4f8248
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.0049eadd
mov eax, dword [esp + 0x7c]
mov ecx, dword [esp + 0x30]
push eax
push ecx
lea ecx, [esi + 0xa0]
call fcn.0045a4f0
lea ecx, [esp + 0x4c]
mov byte [esi + 0xdc], 0
call fcn.004904b0
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.004904c6
jmp 0x45b744
cmp al, 0x63
jne 0x45b744
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 0x4df5dc
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.00478f90
push eax
mov dword [esp + 0x38], eax
call fcn.00476640
mov edx, dword [esp + 0x38]
push edx
mov dword [esp + 0x34], eax
call fcn.00476640
mov ecx, dword [esp + 0x3c]
mov dword [esp + 0x5c], eax
lea eax, [esp + 0x74]
push eax
push ecx
call fcn.0045a5a0
mov edx, dword [esp + 0x3c]
mov eax, dword [esp + 0x44]
push edx
push eax
call fcn.004792e0
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.00476f10
add esp, 0x4c
cmp dword [esp + 0x48], 2
jne 0x45b491
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 0x45b379
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.00479990
add ebx, dword [esp + 0x3c]
dec edi
add esp, 0xc
test edi, edi
jge 0x45b360
mov eax, dword [esp + 0x44]
mov ecx, dword [esp + 0x24]
push eax
push ecx
call fcn.0047a0d0
lea edx, [esp + 0x4c]
push edx
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x34]
push ecx
call fcn.0047a650
mov eax, dword [esp + 0x28]
add esp, 0x14
lea edx, [eax + eax*2]
lea edi, [esi + 0xa0]
push edx
mov ecx, edi
call fcn.00409bc0
mov eax, dword [esp + 0x14]
lea ebx, [esi + 0x88]
push eax
mov ecx, ebx
call fcn.00409bc0
mov edx, dword [esp + 0x14]
lea ecx, [esi + 0x7c]
push edx
call fcn.00409bc0
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 0x45b454
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 0x45b414
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 0x45b744
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 0x45b4fb
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.00479990
add ebx, dword [esp + 0x48]
dec edi
add esp, 0xc
test edi, edi
jge 0x45b4e0
xor ebx, ebx
mov eax, dword [esp + 0x44]
mov ecx, dword [esp + 0x24]
push eax
push ecx
call fcn.0047a0d0
lea edx, [esp + 0x4c]
push edx
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x34]
push ecx
call fcn.0047a650
mov ecx, dword [esi + 0xa0]
mov eax, dword [esp + 0x28]
add esp, 0x14
lea edi, [eax + eax*2]
cmp ecx, ebx
jne 0x45b545
cmp dword [esi + 0xa4], ebx
jg 0x45b545
push edi
call fcn.004a04df
add esp, 4
jmp 0x45b565
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.004a0275
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 0x45b595
cmp dword [esi + 0x98], ebx
jg 0x45b595
push edi
call fcn.004a04df
add esp, 4
jmp 0x45b5b5
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.004a0275
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 0x45b5e2
cmp dword [esi + 0x8c], ebx
jg 0x45b5e2
push edi
call fcn.004a04df
add esp, 4
jmp 0x45b604
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.004a0275
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 0x45b62e
cmp dword [esi + 0x80], ebx
jg 0x45b62e
push edi
call fcn.004a04df
add esp, 4
jmp 0x45b64e
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.004a0275
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 0x45b709
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 0x45b6b0
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.0049ef0f
mov esp, ebp
pop ebp
ret 8