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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x84
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + 8]
mov dword [esp + 4], eax
xor eax, eax
push ebx
push esi
mov esi, dword [ecx]
mov dword [esp + 0x5c], eax
mov dword [esp + 0x60], eax
mov dword [esp + 0x64], eax
mov dword [esp + 0x68], eax
mov dword [esp + 0x6c], eax
mov eax, dword [ebp + 0x14]
push edi
mov dword [esp + 0x18], esi
test eax, eax
je 0x494356
cmp dword [eax], 0x40
jl 0x494356
xor eax, eax
mov dword [ebp + 0x14], eax
mov dword [esp + 0x68], eax
test byte [esi + 0x3c], 0x20
je 0x494367
and dword [ebp + 0x1c], 0xfbff
mov edx, dword [ebp + 0xc]
mov edx, dword [edx]
cmp edx, 0x40
jle 0x49438a
push 0x40
push 0x50a960
push ecx
call fcn.00429330
add esp, 0xc
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 0x1c]
and eax, 0x40
mov dword [esp + 0x3c], eax
je 0x4943a1
mov ebx, 1
mov dword [esp + 0x14], ebx
jmp 0x4943a7
mov dword [esp + 0x14], edx
mov ebx, edx
lea eax, [ebx + ebx*4]
shl eax, 4
add eax, 0x2e7
and eax, 0xfffffff8
xor ecx, ecx
mov dword [esp + 0x4c], eax
add eax, 0x48
push ecx
push eax
mov dword [esp + 0x60], eax
call fcn.00426a60
mov edi, eax
add esp, 8
mov dword [esp + 0x50], edi
test edi, edi
je 0x4943e6
mov eax, dword [esp + 0x58]
push eax
push 0
push edi
call fcn.004d6340
add esp, 0xc
cmp byte [esi + 0x41], 0
je 0x4943fe
mov eax, edi
mov ecx, esi
call fcn.004267e0
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
or eax, 0xffffffff
mov dword [edi], ecx
mov ecx, dword [ebp + 0x18]
mov dword [edi + 0x40], eax
mov dword [edi + 0x3c], eax
mov eax, dword [ebp + 0x14]
mov dword [edi + 4], edx
mov edx, dword [esp + 0x10]
mov dword [edi + 0xc], ecx
mov byte [edi + 0x29], bl
mov dword [edi + 8], eax
mov eax, dword [edx + 0x18]
mov ebx, dword [eax + 0x6c]
lea edx, [ebx - 1]
lea ecx, [ebx + 1]
mov dword [esp + 0x30], eax
mov dword [eax + 0x6c], ecx
test ebx, edx
jne 0x494460
mov ecx, dword [esp + 0x30]
mov esi, dword [ecx]
lea eax, [ebx*8 + 4]
push 0
push eax
mov eax, dword [ecx + 0x70]
call fcn.00426bd0
mov ecx, dword [esp + 0x38]
mov dword [ecx + 0x70], eax
add esp, 8
mov eax, ecx
mov eax, dword [eax + 0x70]
test eax, eax
je 0x49446e
mov dword [eax + ebx*4], 0xffffffff
mov dx, word [ebp + 0x1c]
mov word [edi + 0x22], dx
mov edx, dword [esp + 0x4c]
or eax, 0xffffffff
sub eax, ebx
mov dword [edi + 0x30], eax
mov dword [edi + 0x34], eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x1a4]
mov dword [edi + 0x38], ecx
lea eax, [edi + edx]
mov dword [esp + 0x6c], eax
mov dword [esp + 0x60], edi
lea esi, [edi + 0x148]
mov dword [esp + 0x64], esi
lea ecx, [eax + 0x38]
mov dword [eax + 0x30], ecx
mov ecx, 3
mov word [eax + 0x2c], cx
xor ecx, ecx
mov dword [eax + 0x24], ecx
xor edx, edx
mov word [eax + 0x28], dx
mov eax, dword [ebp + 0x10]
mov dword [edi + 0x44], ecx
push 0x48
push eax
lea edx, [esi + 0x18]
push esi
mov dword [esp + 0x64], esi
mov dword [esi], edi
mov dword [esi + 4], ecx
mov dword [esi + 0xc], ecx
mov dword [esi + 0x10], 8
mov dword [esi + 0x14], edx
call fcn.0048eff0
mov ecx, dword [esp + 0x70]
add esp, 0xc
cmp dword [ecx + 0xc], 0
mov dword [esp + 0x30], 0
jle 0x4945b9
xor ebx, ebx
cmp dword [esp + 0x14], 0
je 0x494578
mov ecx, dword [ecx + 0x14]
mov edx, dword [ecx + ebx]
xor eax, eax
mov dword [esp + 0x8c], eax
mov dword [esp + 0x74], eax
mov dword [esp + 0x78], eax
mov dword [esp + 0x88], eax
mov dword [esp + 0x7c], eax
mov dword [esp + 0x80], eax
mov dword [esp + 0x84], eax
mov dword [esp + 0x8c], eax
push edx
lea eax, [esp + 0x78]
push eax
mov byte [esp + 0x90], 2
mov dword [esp + 0x7c], 0x459a00
mov dword [esp + 0x80], 0x459b10
call fcn.00455ab0
add esp, 8
cmp byte [esp + 0x88], 0
je 0x4945a0
mov ecx, dword [esp + 0x64]
mov edx, dword [edi + 0x34]
mov eax, dword [ecx + 0x14]
mov ecx, dword [eax + ebx]
push 0x10
push edx
mov edx, dword [ebp + 8]
push ecx
push edx
call fcn.0045d190
mov eax, dword [esp + 0x74]
mov ecx, dword [eax + 0x14]
lea eax, [ecx + ebx + 0x14]
add esp, 0x10
or word [eax], 4
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x64]
inc eax
add ebx, 0x30
mov dword [esp + 0x30], eax
cmp eax, dword [ecx + 0xc]
jl 0x494503
cmp dword [esp + 0x14], 0
jne 0x4945d9
mov eax, dword [ebp + 0x14]
test eax, eax
je 0x4945cc
mov dl, byte [eax]
mov byte [edi + 0x24], dl
test dword [ebp + 0x1c], 0x400
je 0x4945d9
mov byte [edi + 0x28], 1
mov eax, dword [ebp + 0xc]
xor ecx, ecx
cmp dword [eax], ecx
jle 0x49460d
mov edx, eax
add edx, 0x38
mov dword [esp + 0x30], edx
jmp 0x4945f0
mov ebx, dword [esp + 0x30]
mov edx, dword [edi + 0x44]
mov ebx, dword [ebx]
mov eax, dword [ebp + 0xc]
add dword [esp + 0x30], 0x50
mov dword [edi + edx*4 + 0x48], ebx
inc dword [edi + 0x44]
inc ecx
cmp ecx, dword [eax]
jl 0x4945f0
mov ebx, dword [esi + 0xc]
dec ebx
js 0x494624
mov ecx, dword [ebp + 0xc]
push ebx
push esi
push ecx
call fcn.0048e680
add esp, 0xc
dec ebx
jns 0x494613
mov edx, dword [esp + 0x18]
cmp byte [edx + 0x41], 0
jne 0x4946c8
mov eax, dword [ebp + 0x1c]
mov ebx, dword [ebp + 0x18]
and eax, 0x400
mov dword [esp + 0x48], eax
je 0x494670
mov eax, dword [ebp + 8]
push ebx
push esi
push eax
mov eax, dword [ebp + 0xc]
call fcn.0048fbf0
add esp, 0xc
test eax, eax
je 0x49465e
mov byte [edi + 0x28], 1
jmp 0x494670
cmp dword [ebp + 0x14], 0
jne 0x494670
mov ecx, 0x200
or word [edi + 0x22], cx
mov dword [edi + 8], ebx
cmp dword [esp + 0x14], 1
jne 0x494684
lea ecx, [esp + 0x60]
call fcn.00494110
test eax, eax
jne 0x4946e8
lea edx, [esp + 0x60]
push edx
call fcn.004930c0
add esp, 4
test eax, eax
jne 0x4946c8
push eax
push edi
call fcn.004938b0
mov esi, dword [esp + 0x20]
add esp, 8
cmp byte [esi + 0x41], 0
jne 0x4946c8
cmp dword [edi + 8], 0
je 0x4946f2
mov ax, word [edi + 0x20]
inc ax
movzx ecx, ax
push ecx
push edi
call fcn.004938b0
add esp, 8
cmp byte [esi + 0x41], 0
je 0x4946ec
mov eax, dword [edi + 0x38]
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x1a4], eax
mov eax, dword [esp + 0x18]
mov ebx, edi
call fcn.004912f0
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov esi, dword [esp + 0x18]
cmp dword [edi + 8], 0
jne 0x494704
test dword [esi + 0x18], 0x20000
je 0x494704
or eax, 0xffffffff
mov dword [edi + 0x18], eax
mov dword [edi + 0x1c], eax
mov edx, dword [ebp + 8]
cmp dword [edx + 0x40], 0
jne 0x4946c8
cmp byte [esi + 0x41], 0
jne 0x4946c8
cmp byte [edi + 0x29], 2
jb 0x49481c
test ebx, ebx
je 0x49481c
mov ecx, dword [esp + 0x18]
mov eax, 0x400
test word [ecx + 0x3c], ax
jne 0x49481c
push ebx
lea esi, [edi + 0x44]
push esi
call fcn.0048f2e0
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0x70]
add esp, 8
mov dword [esp + 0x44], edx
test eax, eax
je 0x494767
push eax
push esi
call fcn.0048f2e0
or dword [esp + 0x48], eax
add esp, 8
or dword [esp + 0x44], edx
cmp byte [edi + 0x29], 2
jb 0x49481c
mov bl, byte [edi + 0x29]
mov edx, dword [edi + 4]
movzx eax, bl
lea eax, [eax + eax*4 + 0x2d]
add eax, eax
mov eax, dword [edi + eax*8]
movzx ecx, byte [eax + 0x10]
lea ecx, [ecx + ecx*4]
add ecx, ecx
test byte [edx + ecx*8 + 0x2c], 8
je 0x49481c
cmp word [esp + 0x48], 0
jne 0x4947a8
test dword [eax + 0x24], 0x1000
je 0x49481c
mov edx, dword [eax + 8]
mov ecx, dword [eax + 0xc]
mov eax, edx
and eax, dword [esp + 0x40]
mov dword [esp + 0x34], ecx
and ecx, dword [esp + 0x44]
mov dword [esp + 0x30], edx
or eax, ecx
jne 0x49481c
mov eax, dword [esp + 0x64]
mov esi, dword [eax + 0xc]
mov ecx, dword [eax + 0x14]
lea esi, [esi + esi*2]
shl esi, 4
add esi, ecx
cmp ecx, esi
jae 0x49480a
mov ebx, dword [esp + 0x34]
jmp 0x4947e4
mov edx, dword [esp + 0x30]
mov eax, dword [ecx + 0x28]
and eax, edx
mov edx, dword [ecx + 0x2c]
and edx, ebx
or eax, edx
je 0x4947fa
mov eax, dword [ecx]
test byte [eax + 4], 1
je 0x494803
add ecx, 0x30
cmp ecx, esi
jb 0x4947e0
jmp 0x494807
cmp ecx, esi
jb 0x49481c
mov bl, byte [edi + 0x29]
dec dword [esp + 0x14]
dec bl
mov byte [edi + 0x29], bl
cmp bl, 2
jae 0x494771
movsx ecx, word [edi + 0x20]
mov eax, dword [edi]
add dword [eax + 0x1a4], ecx
test byte [ebp + 0x1c], 4
je 0x494851
mov eax, dword [edi + 0x320]
test dword [eax + 0x24], 0x1000
je 0x494851
mov edx, dword [ebp + 0xc]
mov byte [edi + 0x26], 1
mov ecx, dword [edx + 0x18]
test byte [ecx + 0x2a], 0x20
jne 0x494851
and dword [eax + 0x24], 0xffffffbf
mov eax, dword [esp + 0x14]
test eax, eax
jle 0x494c55
lea edx, [edi + 0x320]
mov dword [esp + 0x20], edx
mov dword [esp + 0x4c], eax
mov eax, dword [esp + 0x20]
movzx eax, byte [eax - 0x14]
mov edx, dword [ebp + 0xc]
lea ecx, [eax + eax*4]
add ecx, ecx
mov ebx, dword [edx + ecx*8 + 0x18]
lea eax, [edx + ecx*8 + 8]
mov ecx, dword [ebx + 0x40]
mov dword [esp + 0x2c], eax
mov eax, 0xfff0bdc0
mov dword [esp + 0x28], ebx
mov dword [esp + 0x48], ecx
mov dword [esp + 0x1c], eax
mov dword [esp + 0x30], 0
test ecx, ecx
je 0x4948ea
mov ecx, dword [esp + 0x18]
mov esi, dword [ecx + 0x14]
xor eax, eax
mov edx, 1
mov dword [esp + 0x1c], eax
mov dword [esp + 0x30], edx
test esi, esi
jle 0x4948ea
mov ecx, dword [ecx + 0x10]
mov ebx, dword [esp + 0x48]
add ecx, 0xc
jmp 0x4948d0
cmp dword [ecx], ebx
je 0x4948de
inc eax
add ecx, 0x10
rol edx, 1
cmp eax, esi
jl 0x4948d0
mov ebx, dword [esp + 0x28]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x30], edx
mov edx, dword [esp + 0x20]
mov cl, byte [ebx + 0x2a]
mov esi, dword [edx]
mov dword [esp + 0x48], esi
test cl, 2
jne 0x494a96
cmp dword [ebx + 0xc], 0
jne 0x494a96
mov esi, dword [esi + 0x24]
mov dword [esp + 0x40], esi
test esi, 0x400
je 0x4949f3
mov eax, dword [esp + 0x28]
mov ebx, dword [eax + 0x38]
xor ecx, ecx
cmp ebx, ecx
je 0x49493b
mov eax, dword [esp + 0x18]
mov edi, edi
cmp dword [ebx], eax
je 0x49493b
mov ebx, dword [ebx + 0x18]
cmp ebx, ecx
jne 0x494930
mov edx, dword [esp + 0x2c]
mov eax, dword [edx + 0x30]
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x10]
mov esi, dword [eax + 0x20]
mov edx, dword [eax + 0x18]
cmp dword [edx + 0x54], esi
jg 0x49496f
push eax
call fcn.00445210
add esp, 4
test eax, eax
je 0x494969
mov eax, 1
jmp 0x494996
mov eax, dword [esp + 0x10]
xor ecx, ecx
inc dword [eax + 0x20]
mov eax, dword [eax + 4]
lea edx, [esi + esi*4]
lea eax, [eax + edx*4]
mov edx, dword [esp + 0x40]
mov byte [eax + 3], 0
mov dword [eax + 4], edx
mov dword [eax + 8], ecx
mov dword [eax + 0xc], ecx
mov dword [eax + 0x10], ecx
mov word [eax], 0x98
mov eax, esi
mov ecx, dword [esp + 0x10]
mov esi, dword [ecx + 4]
mov edx, dword [ecx]
test esi, esi
je 0x494a96
cmp byte [edx + 0x41], 0
jne 0x494a96
test eax, eax
jns 0x4949bb
mov eax, ecx
mov eax, dword [eax + 0x20]
dec eax
lea ecx, [eax + eax*4]
movsx eax, byte [esi + ecx*4 + 1]
lea esi, [esi + ecx*4]
mov ecx, dword [esi + 0x10]
call fcn.004459d0
mov dword [esi + 0x10], 0
test ebx, ebx
jne 0x4949e4
mov dword [esi + 0x10], ebx
mov byte [esi + 1], bl
jmp 0x494a96
mov dword [esi + 0x10], ebx
mov byte [esi + 1], 0xf6
inc dword [ebx + 0xc]
jmp 0x494a96
test cl, 0x10
jne 0x494a96
test byte [esp + 0x40], 0x40
jne 0x494a81
test byte [ebp + 0x1c], 0x10
jne 0x494a81
cmp byte [edi + 0x26], 0
mov esi, dword [esp + 0x2c]
mov ecx, 0x36
je 0x494a23
mov edx, dword [esi + 0x30]
mov ecx, 0x37
mov dword [edi + 0x3c], edx
push ecx
mov ecx, dword [ebp + 8]
push eax
mov eax, dword [esi + 0x30]
push eax
push ecx
mov eax, ebx
call fcn.00470580
add esp, 0x10
cmp byte [edi + 0x26], 0
jne 0x494a96
cmp word [ebx + 0x22], 0x40
jge 0x494a96
test byte [ebx + 0x2a], 0x20
jne 0x494a96
mov eax, dword [esi + 0x40]
mov ecx, dword [esi + 0x44]
mov edx, eax
xor edi, edi
or edx, ecx
je 0x494a65
shrd eax, ecx, 1
shr ecx, 1
mov edx, eax
inc edi
or edx, ecx
jne 0x494a58
mov ecx, dword [esp + 0x10]
mov eax, dword [ecx + 0x20]
push ecx
dec eax
mov ecx, 0xfffffff2
call fcn.00445c20
mov edi, dword [esp + 0x54]
add esp, 4
jmp 0x494a96
mov ecx, dword [ebx]
mov edx, dword [ebx + 0x1c]
push ecx
push 0
push edx
push eax
mov eax, dword [ebp + 8]
call fcn.00461990
add esp, 0x10
mov eax, dword [esp + 0x48]
test dword [eax + 0x24], 0x200
je 0x494bf9
mov ecx, dword [eax + 0x1c]
mov eax, dword [esp + 0x28]
test byte [eax + 0x2a], 0x20
mov dword [esp + 0x40], ecx
mov dword [esp + 0x24], 0x36
je 0x494ae4
mov edx, dword [ecx + 0x34]
and dl, 3
cmp dl, 2
jne 0x494ae4
cmp word [esp + 0x3c], 0
je 0x494ae4
mov eax, dword [esp + 0x20]
mov esi, dword [eax - 0x3c]
mov dword [esp + 0x24], 0
jmp 0x494b44
cmp byte [edi + 0x26], 0
mov esi, dword [ebp + 0x20]
je 0x494b19
mov edx, dword [esp + 0x2c]
mov eax, dword [edx + 0x10]
mov eax, dword [eax + 8]
test eax, eax
je 0x494b0c
jmp 0x494b00
cmp eax, ecx
je 0x494b0c
mov eax, dword [eax + 0x14]
inc esi
test eax, eax
jne 0x494b00
mov dword [esp + 0x24], 0x37
mov dword [edi + 0x40], esi
jmp 0x494b44
test esi, esi
je 0x494b38
cmp word [esp + 0x3c], 0
je 0x494b38
test dword [ebp + 0x1c], 0x1000
je 0x494b44
mov dword [esp + 0x24], 0x35
jmp 0x494b44
mov eax, dword [ebp + 8]
mov esi, dword [eax + 0x44]
lea ecx, [esi + 1]
mov dword [eax + 0x44], ecx
cmp dword [esp + 0x24], 0
mov edx, dword [esp + 0x20]
mov dword [edx - 0x38], esi
je 0x494bf9
mov eax, dword [esp + 0x40]
mov ecx, dword [eax + 0x28]
mov eax, dword [esp + 0x10]
mov ebx, dword [eax + 0x20]
mov edx, dword [eax + 0x18]
mov dword [esp + 0x2c], ecx
cmp dword [edx + 0x54], ebx
jg 0x494b81
push eax
call fcn.00445210
add esp, 4
test eax, eax
jne 0x494bb5
mov eax, dword [esp + 0x10]
mov edx, dword [eax + 4]
inc dword [eax + 0x20]
lea ecx, [ebx + ebx*4]
lea eax, [edx + ecx*4]
mov cl, byte [esp + 0x24]
mov edx, dword [esp + 0x2c]
mov dword [eax + 4], esi
mov esi, dword [esp + 0x1c]
mov byte [eax], cl
mov byte [eax + 3], 0
mov dword [eax + 8], edx
mov dword [eax + 0xc], esi
mov dword [eax + 0x10], 0
mov byte [eax + 1], 0
jmp 0x494bb9
mov esi, dword [esp + 0x1c]
mov ecx, dword [esp + 0x40]
mov eax, dword [ebp + 8]
call fcn.00445d00
mov eax, dword [esp + 0x48]
mov eax, dword [eax + 0x24]
test al, 0xf
je 0x494bfd
test eax, 0x8002
jne 0x494bfd
test byte [edi + 0x22], 1
jne 0x494bfd
mov ecx, dword [esp + 0x10]
mov ecx, dword [ecx + 4]
test ecx, ecx
je 0x494bfd
mov edx, dword [esp + 0x10]
mov eax, dword [edx + 0x20]
lea eax, [eax + eax*4]
mov byte [ecx + eax*4 - 0x11], 2
jmp 0x494bfd
mov esi, dword [esp + 0x1c]
test esi, esi
js 0x494c46
mov ebx, dword [ebp + 8]
mov eax, dword [ebx + 0x198]
test eax, eax
je 0x494c10
mov ebx, eax
mov ecx, dword [ebx + 0x14c]
mov eax, dword [esp + 0x30]
test ecx, eax
jne 0x494c46
mov edx, dword [ebx]
or eax, ecx
mov dword [ebx + 0x14c], eax
mov eax, dword [edx + 0x10]
mov ecx, esi
add ecx, ecx
mov ecx, dword [eax + ecx*8 + 0xc]
mov edx, dword [ecx]
mov dword [ebx + esi*4 + 0x150], edx
cmp esi, 1
jne 0x494c46
call fcn.00467940
add dword [esp + 0x20], 0x50
dec dword [esp + 0x4c]
jne 0x49486b
mov eax, dword [esp + 0x10]
mov ecx, dword [eax + 0x20]
mov edx, dword [esp + 0x18]
mov dword [edi + 0x2c], ecx
cmp byte [edx + 0x41], 0
jne 0x4946c8
or eax, 0xffffffff
xor ebx, ebx
mov dword [esp + 0x50], eax
mov dword [esp + 0x54], eax
cmp dword [esp + 0x14], ebx
jle 0x494d25
lea esi, [edi + 0x30c]
mov eax, dword [esi + 0x14]
test dword [eax + 0x24], 0x4000
je 0x494cd3
mov edx, dword [esp + 0x54]
mov eax, dword [esp + 0x50]
lea ecx, [esi - 0x2c]
push ecx
push edx
mov edx, dword [ebp + 0xc]
push eax
movzx eax, byte [esi]
lea ecx, [eax + eax*4]
add ecx, ecx
lea eax, [edx + ecx*8 + 8]
mov ecx, dword [esp + 0x64]
mov edx, dword [ebp + 8]
push eax
push ecx
push edx
call fcn.0048fde0
mov eax, dword [esp + 0x30]
add esp, 0x18
cmp byte [eax + 0x41], 0
jne 0x4946c8
movzx edx, byte [esi]
mov ecx, dword [ebp + 0x1c]
mov eax, dword [ebp + 0xc]
push ecx
mov ecx, dword [ebp + 8]
push edx
push ebx
lea edx, [esi - 0x2c]
push eax
call fcn.0048b440
mov ecx, dword [esp + 0x20]
mov edx, dword [ecx + 0x20]
mov eax, dword [esp + 0x64]
mov ecx, dword [esp + 0x60]
push eax
push ecx
push ebx
push edi
mov dword [esi - 0xc], edx
call fcn.0048be60
mov dword [esp + 0x74], edx
mov edx, dword [esi - 0x14]
inc ebx
add esp, 0x20
add esi, 0x50
mov dword [esp + 0x50], eax
mov dword [edi + 0x30], edx
cmp ebx, dword [esp + 0x14]
jl 0x494c8a
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret