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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x64
xor eax, eax
push ebx
mov ebx, ecx
mov dword [esp + 0x48], eax
push esi
mov esi, edx
mov dword [esp + 0x38], eax
mov byte [esp + 0xf], al
mov dword [esp + 0x58], eax
mov dword [esp + 0x40], eax
mov dword [esp + 0x48], eax
mov dword [esp + 0x5c], eax
mov eax, dword [ebx]
push edi
mov dword [esp + 0x18], esi
mov dword [esp + 0x54], ebx
mov dword [esp + 0x28], eax
call fcn.0049bcf4
test byte [esi + 0x24], 0x20
mov edi, eax
movsx edx, word [esi + 0x2a]
mov dword [esp + 0x38], edx
jne 0x494964
xor eax, eax
mov dword [esp + 0x48], 1
mov dword [esp + 0x1c], eax
jmp 0x494979
mov ecx, esi
call fcn.0048a7f2
mov dword [esp + 0x1c], eax
movzx eax, word [eax + 0x32]
mov dword [esp + 0x48], eax
xor eax, eax
mov dword [esp + 0x64], 2
test edx, edx
jle 0x494b5b
mov ecx, dword [ebp + 0x14]
mov edx, eax
mov dword [esp + 0x14], eax
inc ecx
mov eax, dword [ebp + 0x2c]
mov dword [esp + 0x24], eax
mov eax, dword [ebp + 0x14]
not eax
mov dword [esp + 0x20], ecx
mov dword [esp + 0x40], eax
add ecx, eax
movsx eax, word [esi + 0x28]
cmp ecx, eax
je 0x494b2a
cmp dword [ebp + 0x2c], 0
je 0x4949c9
mov eax, dword [esp + 0x24]
xor ecx, ecx
cmp dword [eax], ecx
jl 0x494b2e
mov eax, dword [esi + 4]
mov al, byte [edx + eax + 0xc]
movzx ecx, al
mov dword [esp + 0x58], ecx
test al, al
je 0x494b2a
mov ah, byte [ebp + 0x20]
cmp ah, 0xb
jne 0x4949eb
cmp al, ah
je 0x494a0d
cmp ah, 0xb
movzx ecx, ah
cmove ecx, dword [esp + 0x58]
mov dword [esp + 0x30], ecx
cmp ecx, 5
jne 0x494a1f
mov eax, dword [esi + 4]
mov dword [esp + 0x30], ecx
cmp dword [edx + eax + 4], 0
jne 0x494a1f
push 2
pop eax
mov dword [esp + 0x30], eax
xor eax, eax
mov dword [esp + 0x2c], eax
jmp 0x494abd
xor eax, eax
mov dword [esp + 0x2c], eax
sub ecx, 1
je 0x494acb
sub ecx, 1
je 0x494abd
sub ecx, 1
je 0x494acb
push 2
pop eax
sub ecx, eax
je 0x494a63
xor eax, eax
mov ecx, edi
push eax
push dword [ebp + 0x24]
push dword [esp + 0x28]
push 0x32
pop edx
call fcn.00471e77
add esp, 0xc
jmp 0x494b26
dec dword [ebx + 0x38]
xor ecx, ecx
mov eax, dword [ebx + 0x38]
push ecx
push eax
push dword [esp + 0x28]
mov ecx, edi
mov dword [esp + 0x38], eax
push 0x33
pop edx
call fcn.00471e77
mov edx, dword [esi + 4]
add esp, 0xc
mov eax, dword [esp + 0x14]
mov ecx, ebx
push dword [esp + 0x20]
mov edx, dword [eax + edx + 4]
call fcn.00485173
pop ecx
xor eax, eax
mov ecx, edi
push eax
mov eax, dword [esp + 0x30]
push eax
push dword [esp + 0x28]
push 0x33
pop edx
call fcn.00471e77
mov edx, dword [esp + 0x20]
add esp, 0xc
push 2
pop eax
mov dword [esp + 0x30], eax
cmp dword [ebx + 0x74], 0
mov eax, ebx
cmovne eax, dword [ebx + 0x74]
mov byte [eax + 0x15], 1
mov eax, dword [esi + 4]
push dword [edx + eax]
push dword [esi]
push 0x101e0b84
push dword [esp + 0x34]
call fcn.0045bb99
push dword [esp + 0x30]
mov ecx, edi
mov esi, eax
push dword [esp + 0x44]
push 0x513
push 0x44
pop edx
call fcn.00471e77
add esp, 0x1c
mov edx, esi
mov ecx, edi
push 0xfffffffffffffff9
call fcn.0047258d
pop ecx
xor edx, edx
mov ecx, edi
inc edx
call fcn.00472341
mov eax, dword [esp + 0x2c]
test eax, eax
je 0x494b22
mov edx, eax
call fcn.0047216a
mov esi, dword [esp + 0x18]
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x24]
push 4
pop ecx
add eax, ecx
add edx, 0x10
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x24], eax
inc ecx
mov eax, dword [esp + 0x40]
add eax, ecx
mov dword [esp + 0x14], edx
cmp eax, dword [esp + 0x38]
mov eax, dword [esp + 0x40]
mov dword [esp + 0x20], ecx
jl 0x4949a7
mov ecx, dword [esi + 0x18]
xor edx, edx
mov dword [esp + 0x34], ecx
test ecx, ecx
je 0x494c57
mov eax, dword [esp + 0x28]
mov eax, dword [eax + 0x20]
and eax, 0x200
or eax, edx
jne 0x494c57
mov eax, dword [ebp + 0x14]
cmp byte [ebp + 0x20], 0xb
not eax
mov dword [ebx + 0x34], eax
movzx eax, byte [ebp + 0x20]
push 2
pop esi
cmovne esi, eax
mov dword [esp + 0x38], edx
cmp dword [ecx], edx
jle 0x494c50
lea eax, [ecx + 8]
mov dword [esp + 0x40], eax
mov edx, dword [ebp + 0x2c]
mov ecx, dword [eax - 4]
mov dword [esp + 0x58], ecx
test edx, edx
je 0x494bca
movzx eax, byte [ebp + 0x1c]
push eax
call fcn.004948ac
pop ecx
test eax, eax
je 0x494c2e
mov ecx, dword [esp + 0x58]
dec dword [ebx + 0x38]
mov eax, dword [ebx + 0x38]
push 0x10
push eax
push ecx
push ebx
mov dword [esp + 0x68], eax
call fcn.004854b9
add esp, 0x10
push 4
pop eax
cmp esi, eax
jne 0x494bf4
mov edx, dword [ebp + 0x24]
mov ecx, edi
call fcn.00471ed0
jmp 0x494c23
mov eax, dword [esp + 0x40]
mov eax, dword [eax]
test eax, eax
jne 0x494c04
mov eax, dword [esp + 0x18]
mov eax, dword [eax]
push 2
pop ecx
cmp esi, 5
mov edx, 0x113
push 3
cmove esi, ecx
xor ecx, ecx
push ecx
push eax
push esi
mov ecx, ebx
call fcn.0048e53a
add esp, 0x10
mov edx, dword [esp + 0x58]
mov ecx, edi
call fcn.0047216a
mov edx, dword [esp + 0x38]
mov ecx, dword [esp + 0x34]
inc edx
mov eax, dword [esp + 0x40]
add eax, 0x18
mov dword [esp + 0x38], edx
mov dword [esp + 0x40], eax
cmp edx, dword [ecx]
jl 0x494ba9
xor edx, edx
mov esi, dword [esp + 0x18]
mov dword [ebx + 0x34], edx
mov ecx, dword [ebp + 0x30]
test ecx, ecx
je 0x494c95
cmp dword [ecx], edx
jne 0x494c73
push 4
pop eax
mov dl, al
xor eax, eax
mov ecx, eax
mov byte [ebp + 0x20], dl
mov dword [ebp + 0x30], ecx
jmp 0x494c98
mov eax, dword [ecx + 0x10]
mov dword [esp + 0x3c], eax
test eax, eax
je 0x494c95
push edx
push edx
push edx
push 0xb
pop edx
mov ecx, edi
call fcn.00471e77
mov ecx, dword [ebp + 0x30]
add esp, 0xc
mov dword [esp + 0x44], eax
mov dl, byte [ebp + 0x20]
cmp byte [ebp + 0x1c], 0
je 0x494dc9
cmp dword [esp + 0x1c], 0
jne 0x494dc9
dec dword [ebx + 0x38]
mov eax, dword [ebx + 0x38]
movzx esi, byte [esi + 0x30]
mov dword [esp + 0x38], eax
cmp dl, 0xb
je 0x494cc5
movzx esi, dl
jmp 0x494ccd
cmp esi, 0xb
cmove esi, dword [esp + 0x64]
test ecx, ecx
je 0x494ce7
cmp dword [ecx + 0x10], 0
jne 0x494ce7
push 6
pop esi
xor edx, edx
cmp dword [ecx + 8], edx
push 4
pop ecx
cmove esi, ecx
jmp 0x494d15
cmp esi, 5
jne 0x494d15
cmp dl, 5
je 0x494d15
mov eax, dword [esp + 0x18]
xor ecx, ecx
cmp dword [eax + 8], ecx
je 0x494d11
push ecx
push ecx
push ecx
push 0xb
pop edx
mov ecx, edi
call fcn.00471e77
add esp, 0xc
inc eax
mov dword [esp + 0x4c], eax
mov eax, dword [esp + 0x38]
mov ecx, dword [ebp + 0x18]
test ecx, ecx
je 0x494d3a
push ecx
push eax
push dword [ebp + 0x14]
mov ecx, edi
push 0x35
pop edx
call fcn.00471e77
add esp, 0xc
mov edx, 0x90
mov ecx, edi
call fcn.00472341
push dword [ebp + 0x14]
mov ecx, edi
push dword [esp + 0x3c]
push dword [ebp + 0xc]
push 0x1f
pop edx
call fcn.00471e77
mov eax, esi
add esp, 0xc
sub eax, 1
je 0x494d82
sub eax, 1
je 0x494d82
sub eax, 1
je 0x494d82
sub eax, 1
je 0x494e53
sub eax, 1
je 0x494e62
sub eax, 1
je 0x494e3c
push 2
pop eax
mov esi, eax
push dword [esp + 0x18]
mov edx, esi
mov ecx, ebx
call fcn.0048e683
pop ecx
mov edx, dword [esp + 0x38]
mov ecx, edi
call fcn.0047216a
mov esi, dword [esp + 0x4c]
test esi, esi
je 0x494dc9
xor eax, eax
mov ecx, edi
push eax
push eax
push eax
push 0xb
pop edx
call fcn.00471e77
add esp, 0xc
mov dword [esp + 0x60], eax
lea edx, [esi - 1]
mov ecx, edi
call fcn.004725d9
mov ecx, dword [edi + 0x6c]
mov dword [eax + 8], ecx
mov esi, dword [esp + 0x18]
xor eax, eax
mov dword [esp + 0x20], eax
mov eax, dword [esi + 8]
mov dword [esp + 0x14], eax
test eax, eax
je 0x49548a
mov ecx, dword [esp + 0x20]
mov edx, dword [ebp + 8]
cmp dword [edx + ecx*4], 0
je 0x495476
mov edx, dword [esp + 0x3c]
cmp edx, eax
jne 0x494f11
mov eax, dword [esp + 0x44]
mov ecx, edi
inc eax
mov dword [esp + 0x24], eax
xor eax, eax
push eax
push eax
push eax
push 0xb
pop edx
call fcn.00471e77
mov edx, dword [esp + 0x50]
add esp, 0xc
mov ecx, edi
mov dword [esp + 0x5c], eax
call fcn.004725d9
mov ecx, dword [edi + 0x6c]
mov edx, dword [esp + 0x3c]
mov dword [eax + 8], ecx
mov eax, dword [esp + 0x14]
jmp 0x494f1b
push dword [ebp + 0xc]
mov edx, dword [ebp + 0x30]
xor eax, eax
push eax
push dword [esp + 0x20]
mov ecx, ebx
call fcn.004a3294
add esp, 0xc
mov edx, dword [ebp + 0x24]
mov ecx, edi
call fcn.00471ed0
jmp 0x494d90
mov eax, dword [esp + 0x28]
xor ecx, ecx
mov esi, dword [esp + 0x18]
mov dword [esp + 0x50], ecx
mov eax, dword [eax + 0x20]
and eax, 0x2000
or eax, ecx
je 0x494e96
push ecx
push ecx
push 0x7c
mov edx, esi
mov ecx, ebx
call fcn.004a14d1
add esp, 0xc
mov dword [esp + 0x50], eax
test eax, eax
jne 0x494ed2
xor ecx, ecx
push ecx
push ecx
mov edx, esi
mov ecx, ebx
call fcn.00492ec1
pop ecx
pop ecx
test eax, eax
jne 0x494ed2
xor ecx, ecx
cmp dword [esi + 8], ecx
je 0x494f04
cmp dword [ebx + 0x74], ecx
mov eax, ebx
push 0xffffffffffffffff
cmovne eax, dword [ebx + 0x74]
mov edx, esi
push ecx
push dword [ebp + 0x10]
mov ecx, ebx
push dword [ebp + 0xc]
mov byte [eax + 0x14], 1
call fcn.0048fdfa
add esp, 0x10
jmp 0x494f04
cmp dword [ebx + 0x74], 0
mov eax, ebx
push 0xffffffffffffffff
cmovne eax, dword [ebx + 0x74]
mov edx, esi
push 1
push 5
mov ecx, ebx
mov byte [eax + 0x14], 1
xor eax, eax
push eax
push 1
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [esp + 0x70]
call fcn.0048fb68
add esp, 0x24
mov dword [esp + 0x50], 1
jmp 0x494d90
dec dword [ebx + 0x38]
mov ecx, dword [ebx + 0x38]
mov dword [esp + 0x24], ecx
cmp byte [esp + 0x13], 0
jne 0x494f3e
test edx, edx
je 0x494f2a
cmp edx, eax
jne 0x494f3e
mov eax, dword [ebp + 0x14]
mov edx, esi
inc eax
mov ecx, edi
push eax
call fcn.0049360f
pop ecx
mov byte [esp + 0x13], 1
mov ecx, dword [ebp + 0x10]
xor edx, edx
mov eax, dword [esp + 0x20]
add ecx, eax
mov dword [esp + 0x34], ecx
mov ecx, dword [esp + 0x14]
cmp dword [ecx + 0x24], edx
je 0x494f94
mov ecx, dword [ebp + 8]
push edx
push dword [ecx + eax*4]
mov ecx, edi
push edx
push 0x49
pop edx
call fcn.00471e77
mov eax, dword [ebp + 0x14]
add esp, 8
not eax
mov ecx, ebx
mov dword [ebx + 0x34], eax
mov eax, dword [esp + 0x18]
push dword [esp + 0x28]
mov edx, dword [eax + 0x24]
call fcn.00485a7e
pop ecx
xor eax, eax
pop ecx
mov ecx, dword [esp + 0x14]
mov dword [ebx + 0x34], eax
mov eax, dword [esp + 0x20]
mov edx, dword [ebp + 8]
mov edx, dword [edx + eax*4]
lea eax, [edx + 1]
mov dword [esp + 0x30], eax
xor eax, eax
mov dword [esp + 0x2c], eax
movzx eax, word [ecx + 0x34]
mov esi, eax
mov dword [esp + 0x64], esi
xor esi, esi
cmp si, ax
mov esi, dword [esp + 0x18]
jae 0x495064
mov eax, dword [esp + 0x30]
mov dword [esp + 0x38], eax
xor eax, eax
mov dword [esp + 0x40], eax
mov eax, dword [ecx + 4]
mov edx, dword [esp + 0x2c]
movsx edx, word [eax + edx*2]
cmp edx, 0xfffffffe
jne 0x495004
mov eax, dword [ebp + 0x14]
push dword [esp + 0x38]
not eax
mov dword [ebx + 0x34], eax
mov edx, dword [ecx + 0x28]
mov ecx, ebx
mov eax, dword [esp + 0x44]
mov edx, dword [edx + eax + 4]
call fcn.004851c0
xor eax, eax
pop ecx
mov dword [ebx + 0x34], eax
jmp 0x495037
cmp edx, 0xffffffff
je 0x495019
movsx eax, word [esi + 0x28]
cmp edx, eax
je 0x495019
mov eax, dword [ebp + 0x14]
inc eax
add eax, edx
jmp 0x49501c
mov eax, dword [ebp + 0x14]
xor ecx, ecx
sar edx, 0x1f
push ecx
push dword [esp + 0x3c]
and edx, 1
mov ecx, edi
push eax
add edx, 0x4f
call fcn.00471e77
add esp, 0xc
mov ecx, dword [esp + 0x14]
inc dword [esp + 0x2c]
add dword [esp + 0x40], 0x18
inc dword [esp + 0x38]
movzx edx, word [ecx + 0x34]
cmp dword [esp + 0x2c], edx
jl 0x494fce
mov ecx, dword [esp + 0x20]
mov eax, edx
mov edx, dword [ebp + 8]
mov edx, dword [edx + ecx*4]
jmp 0x495068
mov eax, dword [esp + 0x64]
push edx
movzx eax, ax
mov ecx, edi
push eax
push dword [esp + 0x38]
push 0x5c
pop edx
call fcn.00471e77
mov ecx, dword [esp + 0x20]
add esp, 0xc
cmp dword [ebp + 0x18], 0
je 0x4950a4
cmp dword [esp + 0x1c], ecx
jne 0x4950a4
cmp byte [ebp + 0x1c], 0
jne 0x4950a4
mov edx, dword [esp + 0x24]
mov ecx, edi
call fcn.0047216a
jmp 0x49546b
movzx eax, byte [ecx + 0x36]
test eax, eax
je 0x495094
mov dl, byte [ebp + 0x20]
cmp dl, 0xb
je 0x4950b9
movzx eax, dl
jmp 0x4950c2
push 2
cmp eax, 0xb
pop edx
cmove eax, edx
mov dword [esp + 0x38], eax
cmp dword [esp + 0x3c], ecx
jne 0x4950e0
mov edx, dword [ebp + 0x30]
push 6
pop eax
push 4
cmp dword [edx + 8], 0
pop edx
cmove eax, edx
mov dword [esp + 0x38], eax
cmp dword [esp + 0x20], 0
jne 0x49514b
xor edx, edx
cmp dword [ecx + 0x14], edx
jne 0x49514b
cmp dword [esp + 0x1c], ecx
jne 0x49514b
cmp eax, 5
jne 0x49514b
mov eax, dword [esp + 0x28]
mov eax, dword [eax + 0x20]
and eax, 0x2000
mov dword [esp + 0x68], eax
je 0x495121
push edx
push edx
push 0x7c
mov edx, esi
mov ecx, ebx
call fcn.004a14d1
add esp, 0xc
test eax, eax
jne 0x49514b
xor edx, edx
mov eax, dword [esp + 0x28]
mov eax, dword [eax + 0x20]
and eax, 0x4000
mov dword [esp + 0x68], eax
je 0x495094
cmp dword [esi + 0x10], edx
jne 0x49514b
mov ecx, esi
call fcn.00492793
test eax, eax
je 0x495094
mov eax, dword [esp + 0x14]
mov ecx, edi
movzx eax, word [eax + 0x32]
push eax
push dword [esp + 0x34]
push dword [esp + 0x2c]
push dword [esp + 0x40]
push 0x1b
pop edx
call fcn.004720d0
mov eax, dword [esp + 0x24]
add esp, 0x10
mov edx, dword [esp + 0x1c]
cmp eax, edx
jne 0x49517f
mov ecx, dword [esp + 0x30]
jmp 0x495194
mov edx, dword [esp + 0x48]
mov ecx, ebx
call fcn.004865d9
mov edx, dword [esp + 0x1c]
mov ecx, eax
mov eax, dword [esp + 0x14]
cmp dword [ebp + 0x18], 0
mov dword [esp + 0x2c], ecx
jne 0x4951a9
cmp dword [esp + 0x38], 5
jne 0x495329
test byte [esi + 0x24], 0x20
jne 0x4951f8
xor eax, eax
mov edx, 0x87
push eax
push ecx
push dword [esp + 0x3c]
mov ecx, edi
call fcn.00471e77
mov eax, dword [ebp + 0x18]
add esp, 0xc
test eax, eax
je 0x495329
push eax
push dword [esp + 0x28]
mov ecx, edi
push dword [esp + 0x34]
push 0x35
pop edx
call fcn.00471e77
add esp, 0xc
mov edx, 0x90
mov ecx, edi
call fcn.00472341
jmp 0x495329
cmp eax, edx
je 0x495256
xor ebx, ebx
cmp bx, word [edx + 0x32]
mov dword [esp + 0x64], ebx
mov ebx, dword [esp + 0x54]
jae 0x495256
mov esi, dword [esp + 0x14]
mov ebx, dword [esp + 0x64]
lea eax, [ecx + ebx]
mov ecx, esi
push eax
mov eax, dword [edx + 4]
mov dx, word [eax + ebx*2]
call fcn.0048a80a
cwde
mov ecx, edi
push eax
push dword [esp + 0x3c]
push 0x5a
pop edx
call fcn.00471e77
mov edx, dword [esp + 0x28]
add esp, 0xc
mov ecx, dword [esp + 0x2c]
inc ebx
movzx eax, word [edx + 0x32]
cmp ebx, eax
jl 0x495214
mov ebx, dword [esp + 0x54]
mov esi, dword [esp + 0x18]
mov eax, dword [esp + 0x14]
cmp dword [ebp + 0x18], 0
je 0x495329
movzx ecx, word [edx + 0x32]
mov eax, dword [eax + 0x38]
mov edx, dword [edi + 0x6c]
and al, 3
add edx, ecx
mov dword [esp + 0x58], 0x34
mov dword [esp + 0x64], edx
cmp al, 2
mov edx, dword [esp + 0x2c]
cmove edx, dword [esp + 0x30]
mov dword [esp + 0x68], edx
xor edx, edx
mov eax, edx
mov dword [esp + 0x40], eax
test ecx, ecx
je 0x49532b
mov esi, dword [esp + 0x64]
mov ecx, dword [esp + 0x1c]
mov edx, dword [ecx + 0x20]
mov ecx, ebx
mov edx, dword [edx + eax*4]
call fcn.0048b2bc
mov edx, eax
mov eax, dword [esp + 0x1c]
mov ecx, dword [eax + 4]
mov eax, dword [esp + 0x40]
movsx ecx, word [ecx + eax*2]
mov dword [esp + 0x64], ecx
mov ecx, dword [esp + 0x1c]
movzx ecx, word [ecx + 0x32]
dec ecx
cmp eax, ecx
jne 0x4952dc
mov esi, dword [esp + 0x24]
mov dword [esp + 0x58], 0x35
add eax, dword [esp + 0x68]
mov ecx, dword [ebp + 0x18]
push 0xfffffffffffffffe
push edx
mov edx, dword [esp + 0x60]
inc ecx
push eax
mov eax, dword [esp + 0x70]
add eax, ecx
mov ecx, edi
push esi
push eax
call fcn.00471fa1
add esp, 0x14
mov edx, 0x90
mov ecx, edi
call fcn.00472341
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x40]
inc ecx
mov dword [esp + 0x40], ecx
movzx eax, word [eax + 0x32]
cmp ecx, eax
mov eax, ecx
jl 0x49529d
mov esi, dword [esp + 0x18]
xor edx, edx
mov eax, dword [esp + 0x38]
sub eax, 1
je 0x49540d
sub eax, 1
je 0x49540d
sub eax, 1
je 0x49540d
sub eax, 1
je 0x495401
push 2
pop ecx
sub eax, ecx
je 0x4953eb
mov eax, dword [esp + 0x28]
mov dword [esp + 0x58], edx
mov eax, dword [eax + 0x20]
and eax, 0x2000
or eax, edx
je 0x49538c
push edx
push edx
push 0x7c
mov edx, esi
mov ecx, ebx
call fcn.004a14d1
add esp, 0xc
mov dword [esp + 0x58], eax
test eax, eax
jne 0x49539d
xor edx, edx
push edx
push edx
mov edx, esi
mov ecx, ebx
call fcn.00492ec1
pop ecx
pop ecx
test eax, eax
je 0x4953ab
cmp dword [ebx + 0x74], 0
mov eax, ebx
cmovne eax, dword [ebx + 0x74]
mov byte [eax + 0x14], 1
push dword [esp + 0x34]
mov eax, dword [esp + 0x20]
mov edx, esi
cmp dword [esp + 0x18], eax
mov ecx, ebx
sete al
movzx eax, al
push eax
push 5
xor eax, eax
push eax
push dword [esp + 0x58]
push dword [esp + 0x40]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [esp + 0x78]
call fcn.0048fb68
add esp, 0x24
mov dword [esp + 0x50], 1
jmp 0x49541d
push dword [esp + 0x34]
mov edx, dword [ebp + 0x30]
mov ecx, ebx
push dword [esp + 0x18]
push esi
call fcn.004a3294
add esp, 0xc
mov edx, dword [ebp + 0x24]
mov ecx, edi
call fcn.00471ed0
jmp 0x49541d
push dword [esp + 0x14]
mov edx, dword [esp + 0x3c]
mov ecx, ebx
call fcn.0048e58a
pop ecx
mov eax, dword [esp + 0x3c]
mov ecx, edi
cmp eax, dword [esp + 0x14]
jne 0x495448
mov edx, dword [esp + 0x44]
lea edx, [edx + 1]
call fcn.00471ed0
mov edx, dword [esp + 0x5c]
mov ecx, edi
call fcn.004725d9
mov ecx, dword [edi + 0x6c]
mov dword [eax + 8], ecx
jmp 0x495451
mov edx, dword [esp + 0x24]
call fcn.0047216a
mov eax, dword [esp + 0x2c]
cmp eax, dword [esp + 0x30]
je 0x49546b
push dword [esp + 0x48]
mov edx, eax
mov ecx, ebx
call fcn.0048660f
add esp, 4
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x20]
mov edx, dword [ebp + 8]
mov eax, dword [eax + 0x14]
inc ecx
mov dword [esp + 0x14], eax
mov dword [esp + 0x20], ecx
test eax, eax
jne 0x494de9
mov eax, dword [esp + 0x4c]
test eax, eax
je 0x4954ac
mov edx, eax
mov ecx, edi
call fcn.00471ed0
mov edx, dword [esp + 0x60]
mov ecx, edi
call fcn.004725d9
mov ecx, dword [edi + 0x6c]
mov dword [eax + 8], ecx
test byte [esi + 0x24], 0x20
jne 0x4954e7
mov eax, dword [esp + 0x20]
mov ecx, dword [ebp + 8]
push dword [ecx + eax*4]
movsx eax, word [esi + 0x2a]
mov ecx, edi
push eax
mov eax, dword [ebp + 0x14]
inc eax
push eax
push 0x5c
pop edx
call fcn.00471e77
add esp, 0xc
cmp byte [esp + 0x13], 0
jne 0x4954e7
xor eax, eax
mov edx, esi
push eax
mov ecx, edi
call fcn.0049360f
pop ecx
mov eax, dword [ebp + 0x28]
mov ecx, dword [esp + 0x50]
pop edi
pop esi
mov dword [eax], ecx
pop ebx
mov esp, ebp
pop ebp
ret