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

Disassembly:
push 0xffffffffffffffff
push 0x554a7b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x230
push ebx
mov ebx, ecx
mov dword [esp + 0x10], ebx
mov eax, dword [ebx + 4]
test eax, eax
jne 0x407930
xor al, al
jmp 0x407ee7
push ebp
push esi
push edi
mov ecx, ebx
call fcn.0040b2d0
mov esi, eax
mov ecx, ebx
mov dword [esp + 0x10], esi
call fcn.0040b2e0
mov edi, eax
push 0
lea ecx, [esp + 0x48]
mov dword [esp + 0x1c], edi
call fcn.00406be0
push ebx
lea ecx, [esp + 0x48]
mov dword [esp + 0x24c], 0
call fcn.00406f00
mov ecx, ebx
call fcn.0040b310
push eax
mov ecx, ebx
call fcn.0040b300
and eax, 0xffff
lea ecx, [esp + 0x48]
push eax
push edi
push esi
call fcn.00406f20
push 0x100
mov ecx, ebx
call fcn.0040c4b0
push eax
lea ecx, [esp + 0x4c]
call fcn.0040cea0
mov ecx, ebx
call fcn.0040d0b0
test al, al
je 0x4079b7
lea ecx, [esp + 0x44]
call fcn.0040d0c0
mov ecx, ebx
call fcn.0040d4c0
test al, al
je 0x4079cb
lea ecx, [esp + 0x44]
call fcn.0040d4d0
cmp word [ebx + 0x16], 1
jne 0x407be2
push 0
mov ecx, ebx
call fcn.004070d0
push 0
lea ecx, [esp + 0x48]
mov dword [esp + 0x38], eax
call fcn.004070d0
mov ecx, dword [esp + 0x60]
mov dword [esp + 0x2c], eax
push 0
lea edx, [ecx + eax - 1]
mov eax, dword [esp + 0x78]
mov dword [esp + 0x20], edx
mov edx, dword [esp + 0x54]
lea ebp, [eax*8]
lea ecx, [esp + 0x48]
sub ebp, edx
mov dword [esp + 0x3c], ebp
call fcn.00407180
mov eax, dword [ebx + 0x10]
xor esi, esi
test eax, eax
mov dword [esp + 0x24], esi
jle 0x407b05
lea ecx, [esi + ebp]
push 8
push ecx
call dword [sym.imp.MSVCRT.dll_ldiv]
mov dword [esp + 0x44], eax
mov ecx, edx
mov al, 1
mov edx, dword [esp + 0x3c]
shl al, cl
mov ecx, dword [ebx + 0x30]
add esp, 8
mov edi, ecx
mov dword [esp + 0x14], 0
imul edi, esi
add edi, edx
mov byte [esp + 0x2b], al
test ecx, ecx
jle 0x407af5
mov ebp, dword [esp + 0x74]
mov dword [esp + 0x20], 1
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x3c]
imul edx, ebp
sub edx, eax
mov eax, dword [esp + 0x2c]
xor esi, esi
lea ecx, [edx + eax - 1]
mov dword [esp + 0x30], ecx
mov edx, esi
mov ecx, dword [esp + 0x30]
imul edx, ebp
mov eax, dword [esp + 0x2c]
add edx, ecx
cmp edx, eax
jb 0x407ad2
cmp edx, dword [esp + 0x1c]
ja 0x407ad2
mov eax, 0x80
mov ecx, esi
sar eax, cl
mov ecx, dword [esp + 0x14]
mov cl, byte [ecx + edi]
test cl, al
je 0x407acc
mov al, byte [esp + 0x2b]
mov cl, byte [edx]
or cl, al
mov byte [edx], cl
mov ebp, dword [esp + 0x74]
inc esi
cmp esi, 8
jl 0x407a91
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x20]
mov ecx, dword [ebx + 0x30]
inc eax
add edx, 8
cmp eax, ecx
mov dword [esp + 0x14], eax
mov dword [esp + 0x20], edx
jl 0x407a76
mov esi, dword [esp + 0x24]
mov ebp, dword [esp + 0x38]
mov eax, dword [ebx + 0x10]
inc esi
cmp esi, eax
mov dword [esp + 0x24], esi
jl 0x407a2f
mov ecx, ebx
call fcn.0040d0b0
test al, al
je 0x407b4f
mov eax, dword [esp + 0x10]
xor edi, edi
test eax, eax
jle 0x407b4f
lea ebp, [eax - 1]
mov eax, dword [esp + 0x18]
xor esi, esi
test eax, eax
jle 0x407b45
push ebp
push esi
mov ecx, ebx
call fcn.0040d310
push eax
push esi
push edi
lea ecx, [esp + 0x50]
call fcn.0040d240
mov eax, dword [esp + 0x18]
inc esi
cmp esi, eax
jl 0x407b27
mov eax, dword [esp + 0x10]
inc edi
dec ebp
cmp edi, eax
jl 0x407b1d
mov ecx, ebx
call fcn.0040d4c0
test al, al
je 0x407e9d
mov eax, dword [esp + 0x10]
mov edi, dword [ebx + 0x174]
mov esi, dword [ebx + 0x17c]
mov ecx, eax
mov edx, eax
sub ecx, edi
sub edx, esi
mov dword [esp + 0x1b4], ecx
mov ecx, dword [ebx + 0x170]
mov dword [esp + 0x1bc], edx
mov edx, dword [ebx + 0x178]
xor edi, edi
test eax, eax
mov dword [esp + 0x1c0], ecx
mov dword [esp + 0x1b8], edx
jle 0x407e9d
lea ebp, [eax - 1]
mov eax, dword [esp + 0x18]
xor esi, esi
test eax, eax
jle 0x407bd3
push ebp
push esi
mov ecx, ebx
call fcn.0040d5c0
push eax
push esi
push edi
lea ecx, [esp + 0x50]
call fcn.0040d580
mov eax, dword [esp + 0x18]
inc esi
cmp esi, eax
jl 0x407bb5
mov eax, dword [esp + 0x10]
inc edi
dec ebp
cmp edi, eax
jl 0x407bab
jmp 0x407e9d
mov eax, dword [esp + 0x10]
xor ebp, ebp
test eax, eax
mov dword [esp + 0x2c], ebp
jle 0x407e9d
mov eax, dword [esp + 0x18]
mov dword [esp + 0x20], 0
test eax, eax
jle 0x407e8a
cmp word [ebx + 0x16], 0x18
lea eax, [ebp + ebp*4]
mov ebx, ebp
lea edi, [eax + eax*4]
jne 0x407cbf
mov ecx, dword [esp + 0x10]
mov eax, ecx
sub eax, ebp
shl edi, 2
mov dword [esp + 0x34], eax
dec eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x14], eax
lea eax, [ebp + 0x40]
cmp ecx, eax
jge 0x407c3d
mov eax, ecx
cmp ebx, eax
jge 0x407d3f
mov eax, edi
mov ecx, dword [esp + 0x1c]
cdq
idiv dword [esp + 0x10]
mov ebp, dword [esp + 0x20]
push ebp
push ebx
mov dword [ecx + 0x144], eax
lea ecx, [esp + 0x4c]
call fcn.0040d080
mov edx, dword [esp + 0x14]
mov ecx, dword [esp + 0x1c]
push edx
push ebp
mov esi, eax
call fcn.0040d080
mov ecx, ebp
add ebp, 0x40
mov edx, dword [esp + 0x18]
cmp edx, ebp
jl 0x407c85
mov edx, ebp
cmp ecx, edx
jge 0x407ca5
mov dl, byte [eax]
add eax, 3
mov byte [esi], dl
mov dl, byte [eax - 2]
mov byte [esi + 1], dl
mov dl, byte [eax - 1]
mov byte [esi + 2], dl
mov edx, dword [esp + 0x74]
add esi, edx
inc ecx
jmp 0x407c7b
mov eax, dword [esp + 0x14]
mov ebp, dword [esp + 0x2c]
mov ecx, dword [esp + 0x10]
inc ebx
add edi, 0x64
dec eax
mov dword [esp + 0x14], eax
jmp 0x407c34
mov ecx, dword [esp + 0x10]
mov eax, ecx
sub eax, ebp
shl edi, 2
mov dword [esp + 0x34], eax
dec eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x14], eax
lea eax, [ebp + 0x40]
cmp ecx, eax
jge 0x407ce0
mov eax, ecx
cmp ebx, eax
jge 0x407d3f
mov eax, edi
mov ecx, dword [esp + 0x1c]
cdq
idiv dword [esp + 0x10]
mov esi, dword [esp + 0x20]
lea ebp, [esi + 0x40]
mov dword [ecx + 0x144], eax
mov eax, dword [esp + 0x18]
cmp eax, ebp
jl 0x407d06
mov eax, ebp
cmp esi, eax
jge 0x407d28
mov edx, dword [esp + 0x14]
mov ecx, dword [esp + 0x1c]
push edx
push esi
call fcn.0040c650
push eax
push esi
push ebx
lea ecx, [esp + 0x50]
call fcn.0040c9b0
inc esi
jmp 0x407cfc
mov eax, dword [esp + 0x14]
mov ebp, dword [esp + 0x2c]
mov ecx, dword [esp + 0x10]
inc ebx
add edi, 0x64
dec eax
mov dword [esp + 0x14], eax
jmp 0x407cd7
mov ebx, dword [esp + 0x1c]
mov ecx, ebx
call fcn.0040d0b0
test al, al
je 0x407dbe
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x24]
mov dword [esp + 0x14], ebp
mov dword [esp + 0x38], eax
mov dword [esp + 0x30], ecx
mov ecx, dword [esp + 0x10]
lea eax, [ebp + 0x40]
cmp ecx, eax
jge 0x407d6f
mov eax, ecx
cmp dword [esp + 0x14], eax
jge 0x407dbe
mov esi, dword [esp + 0x20]
lea edi, [esi + 0x40]
mov eax, dword [esp + 0x18]
cmp eax, edi
jl 0x407d86
mov eax, edi
cmp esi, eax
jge 0x407daa
mov edx, dword [esp + 0x30]
mov ecx, ebx
push edx
push esi
call fcn.0040d310
push eax
mov eax, dword [esp + 0x18]
push esi
push eax
lea ecx, [esp + 0x50]
call fcn.0040d240
inc esi
jmp 0x407d7c
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x30]
inc ecx
dec eax
mov dword [esp + 0x14], ecx
mov dword [esp + 0x30], eax
jmp 0x407d62
mov ecx, ebx
call fcn.0040d4c0
test al, al
je 0x407e6f
mov ecx, dword [esp + 0x10]
mov esi, dword [ebx + 0x174]
mov edx, ecx
mov eax, ecx
sub edx, esi
mov edi, ebp
mov dword [esp + 0x1b4], edx
mov edx, dword [ebx + 0x17c]
sub eax, edx
mov edx, dword [ebx + 0x170]
mov dword [esp + 0x1bc], eax
mov eax, dword [ebx + 0x178]
mov dword [esp + 0x1c0], edx
mov edx, dword [esp + 0x34]
mov dword [esp + 0x1b8], eax
mov eax, dword [esp + 0x24]
mov dword [esp + 0x38], edx
mov dword [esp + 0x24], eax
lea eax, [ebp + 0x40]
cmp ecx, eax
jge 0x407e28
mov eax, ecx
cmp edi, eax
jge 0x407e6f
mov esi, dword [esp + 0x20]
lea ebx, [esi + 0x40]
mov eax, dword [esp + 0x18]
cmp eax, ebx
jl 0x407e3d
mov eax, ebx
cmp esi, eax
jge 0x407e5f
mov ecx, dword [esp + 0x24]
push ecx
mov ecx, dword [esp + 0x20]
push esi
call fcn.0040d5c0
push eax
push esi
push edi
lea ecx, [esp + 0x50]
call fcn.0040d580
inc esi
jmp 0x407e33
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x10]
inc edi
dec eax
mov dword [esp + 0x24], eax
jmp 0x407e1f
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x18]
mov ebx, dword [esp + 0x1c]
add eax, 0x40
cmp eax, ecx
mov dword [esp + 0x20], eax
jl 0x407c08
mov eax, dword [esp + 0x10]
add ebp, 0x40
cmp ebp, eax
mov dword [esp + 0x2c], ebp
jl 0x407bf4
mov ecx, dword [esp + 0x250]
pop edi
pop esi
pop ebp
test ecx, ecx
push 1
je 0x407eb4
lea edx, [esp + 0x3c]
push edx
jmp 0x407ebb
lea eax, [esp + 0x3c]
mov ecx, ebx
push eax
call fcn.004071f0
lea ecx, [esp + 0x38]
mov dword [esp + 0x23c], 0xffffffff
mov dword [esp + 0x38], sym.MiniPage.exe_const_CxImage::vftable
call fcn.00406cb0
lea ecx, [esp + 0x38]
call fcn.00406c00
mov al, 1
mov ecx, dword [esp + 0x234]
pop ebx
mov dword fs:[0], ecx
add esp, 0x23c
ret 4