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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x792221
mov eax, dword fs:[0]
push eax
sub esp, 0x98
mov eax, dword [0x867e6c]
xor eax, esp
mov dword [esp + 0x90], eax
push ebx
push esi
push edi
mov eax, dword [0x867e6c]
xor eax, esp
push eax
lea eax, [esp + 0xa8]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov ebx, ecx
push eax
mov edi, str.DDImage5:
lea esi, [esp + 0x3c]
mov dword [esp + 0x30], ebx
call fcn.00403060
add esp, 4
lea ecx, [esp + 0x60]
push ecx
push eax
lea ecx, [esp + 0x6c]
mov edx, ebx
mov dword [esp + 0xb8], 0
call fcn.00595ff0
or esi, 0xffffffff
mov dword [esp + 0xb0], esi
cmp dword [esp + 0x50], 0x10
mov bl, al
jb 0x494787
mov edx, dword [esp + 0x3c]
push edx
call fcn.006441c7
add esp, 4
test bl, bl
je 0x494da0
push 0xe4
call fcn.006442a0
add esp, 4
mov dword [esp + 0x64], eax
mov dword [esp + 0xb0], 1
test eax, eax
je 0x4947bd
push eax
call fcn.0047adf0
mov ebx, eax
mov dword [esp + 0x74], eax
jmp 0x4947c3
xor ebx, ebx
mov dword [esp + 0x74], ebx
mov dword [esp + 0xb0], esi
mov eax, dword [esp + 0x60]
lea ecx, [ebx + 0x2c]
mov edi, 4
lea esi, [esp + 0x1c]
mov dword [esp + 0x1c], eax
call fcn.005966a0
lea ecx, [ebx + 0x30]
call fcn.005966a0
lea ecx, [esp + 0x20]
call fcn.005966a0
mov ecx, dword [esp + 0x20]
mov esi, dword [ebx + 0x30]
imul esi, dword [ebx + 0x2c]
mov eax, ecx
sar eax, 0x10
mov dword [ebx + 4], eax
test cl, 1
je 0x494846
push 0x400
mov dword [esp + 0x24], esi
call fcn.0063265d
add esp, 4
push esi
mov dword [ebx + 0x4c], eax
call fcn.0063265d
mov ecx, dword [ebx + 0x4c]
add esp, 4
mov edi, 0x400
lea esi, [esp + 0x1c]
mov dword [ebx + 0x50], eax
call fcn.005966a0
mov edi, dword [esp + 0x20]
mov ecx, dword [ebx + 0x50]
jmp 0x494873
xor ecx, ecx
lea eax, [esi + 1]
mov edx, edi
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0063265d
mov dword [ebx + 0x44], eax
lea edi, [esi*4]
mov dword [edi + eax], 0x4beefade
mov ecx, dword [ebx + 0x44]
add esp, 4
lea esi, [esp + 0x1c]
call fcn.005966a0
lea ecx, [ebx + 0x38]
mov edi, 4
call fcn.005966a0
lea ecx, [ebx + 0x34]
call fcn.005966a0
lea ecx, [ebx + 0x54]
mov edi, 1
call fcn.005966a0
lea ecx, [ebx + 0x55]
call fcn.005966a0
lea ecx, [ebx + 0x56]
call fcn.005966a0
lea ecx, [ebx + 0x57]
call fcn.005966a0
lea ecx, [ebx + 0x58]
call fcn.005966a0
lea ecx, [ebx + 0x59]
call fcn.005966a0
lea ecx, [ebx + 0x68]
call fcn.005966a0
lea ecx, [ebx + 0x5a]
call fcn.005966a0
lea eax, [ebx + 0x70]
add ebx, 0x88
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], ebx
mov dword [esp + 0x34], 0
nop
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + ecx*4 + 0x24]
mov edi, 4
lea ecx, [esp + 0x78]
lea esi, [esp + 0x1c]
mov dword [esp + 0x80], edx
call fcn.005966a0
mov eax, dword [esp + 0x78]
test eax, eax
jle 0x494bab
mov dword [esp + 0x20], eax
push 4
call fcn.006442a0
xor esi, esi
add esp, 4
cmp eax, esi
je 0x494939
lea ecx, [esp + 0x48]
mov dword [eax], ecx
jmp 0x49493b
xor eax, eax
mov dword [esp + 0x48], eax
mov dword [esp + 0x54], esi
mov dword [esp + 0x58], esi
mov dword [esp + 0x5c], esi
mov edi, dword [esp + 0x80]
lea edx, [esp + 0x38]
push edx
mov dword [esp + 0xb4], 3
call fcn.004958b0
mov dword [esp + 0xb0], 0xffffffff
mov eax, dword [esp + 0x54]
cmp eax, esi
je 0x494996
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x58]
push ecx
push edx
call fcn.00496960
mov eax, dword [esp + 0x5c]
push eax
call fcn.006441c7
add esp, 0xc
mov ecx, dword [esp + 0x48]
push ecx
mov dword [esp + 0x58], esi
mov dword [esp + 0x5c], esi
mov dword [esp + 0x60], esi
call fcn.006441c7
mov ebx, dword [edi + 0x10]
add esp, 4
cmp dword [edi + 0xc], ebx
jbe 0x4949bc
call fcn.006441b7
mov esi, dword [edi]
mov dword [esp + 0x68], ebx
test esi, esi
jne 0x4949dd
call fcn.006441b7
xor eax, eax
lea ecx, [ebx - 0x28]
cmp ecx, dword [eax + 0x10]
ja 0x4949e8
test esi, esi
je 0x4949e1
mov eax, dword [esi]
jmp 0x4949e3
mov eax, dword [esi]
jmp 0x4949cd
xor eax, eax
cmp ecx, dword [eax + 0xc]
jae 0x4949ed
call fcn.006441b7
add ebx, 0xffffffd8
test esi, esi
jne 0x494a49
call fcn.006441b7
xor eax, eax
cmp ebx, dword [eax + 0x10]
jb 0x494a05
call fcn.006441b7
mov edi, 4
mov ecx, ebx
lea esi, [esp + 0x1c]
call fcn.005966a0
lea ecx, [ebx + 4]
call fcn.005966a0
lea ecx, [ebx + 8]
call fcn.005966a0
lea ecx, [ebx + 0xc]
call fcn.005966a0
mov eax, dword [ebx + 0xc]
imul eax, dword [ebx + 8]
test eax, eax
jle 0x494ba0
lea edi, [ebx + 0x10]
mov dword [esp + 0x70], edi
mov dword [esp + 0x6c], eax
jmp 0x494a54
mov eax, dword [esi]
jmp 0x4949fb
mov edi, dword [esp + 0x70]
xor esi, esi
push 4
mov dword [esp + 0x3c], esi
mov dword [esp + 0x40], esi
mov dword [esp + 0x44], esi
mov dword [esp + 0x48], esi
call fcn.006442a0
add esp, 4
cmp eax, esi
je 0x494a7c
lea edx, [esp + 0x48]
mov dword [eax], edx
jmp 0x494a7e
xor eax, eax
mov dword [esp + 0x48], eax
mov dword [esp + 0x54], esi
mov dword [esp + 0x58], esi
mov dword [esp + 0x5c], esi
lea eax, [esp + 0x38]
push eax
mov dword [esp + 0xb4], 5
call fcn.004957b0
mov dword [esp + 0xb0], 0xffffffff
mov eax, dword [esp + 0x54]
cmp eax, esi
je 0x494abf
push eax
call fcn.006441c7
add esp, 4
mov ecx, dword [esp + 0x48]
push ecx
mov dword [esp + 0x58], esi
mov dword [esp + 0x5c], esi
mov dword [esp + 0x60], esi
call fcn.006441c7
mov ebx, dword [edi + 0x10]
add esp, 4
cmp dword [edi + 0xc], ebx
jbe 0x494ae5
call fcn.006441b7
mov edx, dword [esp + 0x70]
mov esi, dword [edx]
mov edi, esi
mov dword [esp + 0x68], ebx
test esi, esi
jne 0x494b0c
call fcn.006441b7
xor eax, eax
lea ecx, [ebx - 0x28]
cmp ecx, dword [eax + 0x10]
ja 0x494b17
test esi, esi
je 0x494b10
mov esi, dword [esi]
jmp 0x494b12
mov eax, dword [esi]
jmp 0x494afc
xor esi, esi
cmp ecx, dword [esi + 0xc]
jae 0x494b1c
call fcn.006441b7
add ebx, 0xffffffd8
test edi, edi
jne 0x494c3c
call fcn.006441b7
xor eax, eax
cmp ebx, dword [eax + 0x10]
jb 0x494b38
call fcn.006441b7
mov edi, 0x10
mov ecx, ebx
lea esi, [esp + 0x1c]
call fcn.005966a0
mov edi, 4
lea ecx, [esp + 0x7c]
call fcn.005966a0
mov eax, dword [esp + 0x7c]
test eax, eax
jle 0x494b95
add ebx, 0x10
mov dword [esp + 0x64], ebx
mov ebx, eax
jmp 0x494b70
mov edi, 0x18
lea ecx, [esp + 0x38]
lea esi, [esp + 0x1c]
call fcn.005966a0
mov edi, dword [esp + 0x64]
lea eax, [esp + 0x38]
push eax
call fcn.004956e0
sub ebx, 1
jne 0x494b70
sub dword [esp + 0x6c], 1
jne 0x494a50
sub dword [esp + 0x20], 1
jne 0x494921
mov eax, dword [esp + 0x34]
inc eax
cmp eax, 2
mov dword [esp + 0x34], eax
jl 0x4948f0
mov ecx, dword [esp + 0x60]
push ecx
call fcn.005961e0
mov edx, dword [esp + 0x2c]
push 0xffffffffffffffff
push 0
push edx
lea ecx, [esp + 0x90]
mov dword [esp + 0xa8], 0xf
mov dword [esp + 0xa4], 0
mov byte [esp + 0x94], 0
call fcn.00401530
mov dword [esp + 0xb0], 6
mov eax, dword [0x88b148]
mov ecx, dword [eax + 0xc4]
mov edx, dword [esp + 0x88]
mov ebx, 0x10
cmp dword [esp + 0x9c], ebx
jae 0x494c2c
lea edx, [esp + 0x88]
cmp dword [eax + 0xc8], ebx
jb 0x494c43
mov eax, dword [eax + 0xb4]
jmp 0x494c48
mov eax, dword [edi]
jmp 0x494b2e
add eax, 0xb4
push ecx
push edx
push eax
call fcn.0064764e
add esp, 0xc
test eax, eax
jne 0x494cf7
mov eax, dword [0x88b148]
mov esi, dword [eax + 0xc4]
mov eax, dword [esp + 0x88]
cmp dword [esp + 0x9c], ebx
jae 0x494c7d
lea eax, [esp + 0x88]
lea ecx, [esp + 0x84]
push ecx
push eax
lea ecx, [esp + 0x2c]
call fcn.004057b0
mov edx, dword [esp + 0x24]
mov eax, dword [esp + 0x28]
push esi
lea ecx, [esp + 0x30]
mov dword [esp + 0x30], edx
mov dword [esp + 0x34], eax
call fcn.0043afc0
mov eax, dword [esp + 0x88]
cmp dword [esp + 0x9c], ebx
jae 0x494cc0
lea eax, [esp + 0x88]
lea ecx, [esp + 0x84]
push ecx
push eax
lea ecx, [esp + 0x2c]
call fcn.004057b0
mov edx, dword [esp + 0x30]
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x28]
push edx
mov edx, dword [esp + 0x28]
push eax
push ecx
push edx
lea eax, [esp + 0x34]
push eax
lea edi, [esp + 0x98]
call fcn.004050c0
cmp dword [esp + 0x98], 0
jbe 0x494d6b
mov edx, dword [esp + 0x9c]
mov eax, dword [esp + 0x88]
mov ecx, eax
cmp edx, ebx
jae 0x494d1c
lea ecx, [esp + 0x88]
cmp byte [ecx], 0x5c
je 0x494d33
mov ecx, eax
cmp edx, ebx
jae 0x494d2e
lea ecx, [esp + 0x88]
cmp byte [ecx], 0x2f
jne 0x494d6b
cmp edx, ebx
jae 0x494d3e
lea eax, [esp + 0x88]
lea ecx, [esp + 0x84]
push ecx
push eax
lea ecx, [esp + 0x2c]
call fcn.004057b0
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x24]
push edx
push eax
lea ecx, [esp + 0x2c]
push ecx
lea esi, [esp + 0x90]
call fcn.004488b0
mov esi, dword [esp + 0x74]
push 0xffffffffffffffff
push 0
lea edx, [esp + 0x8c]
push edx
lea ecx, [esi + 0x10]
call fcn.00401530
cmp dword [esp + 0x9c], ebx
jb 0x494d9c
mov eax, dword [esp + 0x88]
push eax
call fcn.006441c7
add esp, 4
mov eax, esi
jmp 0x494da2
xor eax, eax
mov ecx, dword [esp + 0xa8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x90]
xor ecx, esp
call fcn.00643db8
mov esp, ebp
pop ebp
ret