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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x84
mov eax, dword [0x4010c0]
xor eax, esp
mov dword [esp + 0x80], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
mov esi, dword [ebp + 8]
mov dword [esp + 0x20], eax
mov eax, dword [ebp + 0x10]
push edi
mov edi, ecx
mov dword [esp + 0x20], eax
mov ecx, dword [ebp + 0x14]
mov eax, dword [ebp + 0x1c]
mov dword [esp + 0x48], ecx
xor ecx, ecx
mov ebx, dword [edi]
mov dword [esp + 0x54], eax
mov eax, ecx
mov dword [esp + 0x2c], edx
mov dword [esp + 0x4c], edi
mov dword [esp + 0x40], esi
mov dword [esp + 0x34], ecx
mov dword [esp + 0x10], ebx
mov dword [esp + 0x50], eax
mov dword [esp + 0x28], ecx
mov dword [esp + 0x18], ecx
mov dword [esp + 0x3c], ecx
cmp dword [edi + 0x24], ecx
jne 0x4949da
cmp byte [edi + 0xd8], 1
jne 0x493ea3
cmp byte [ebp + 0x28], 2
jne 0x4949da
mov ecx, edi
call fcn.004a2b84
test eax, eax
jne 0x4949da
mov edx, dword [esp + 0x20]
mov ecx, edi
call fcn.00493dd1
test eax, eax
jne 0x4949da
cmp dword [esp + 0x24], eax
je 0x493fa3
mov edx, dword [esp + 0x2c]
lea eax, [esp + 0x50]
push eax
push esi
mov ecx, edi
call fcn.00490bd2
mov esi, eax
mov dword [esp + 0x24], esi
pop ecx
pop ecx
test esi, esi
js 0x4949da
cmp byte [ebx + 0xb1], 0
jne 0x493f25
mov edx, dword [esp + 0x24]
mov ecx, edi
call fcn.004962cc
mov ecx, dword [esp + 0x40]
cmp dword [ecx + 4], 0
jne 0x493f25
test eax, eax
je 0x493f25
mov ecx, dword [ebx + 0x10]
mov eax, dword [eax + 0x3c]
push 1
cmp eax, dword [ecx + 0x1c]
pop eax
cmove esi, eax
mov dword [esp + 0x1c], esi
mov eax, dword [esp + 0x50]
lea ecx, [esp + 0x58]
push eax
push 0x430744
push esi
mov edx, edi
call fcn.0048f9e1
mov esi, dword [esp + 0x30]
add esp, 0xc
mov edx, esi
call fcn.0048fa41
lea eax, [esi + 8]
xor edx, edx
push eax
mov ecx, edi
call fcn.00490517
mov esi, eax
mov dword [esp + 0x3c], esi
pop ecx
test esi, esi
je 0x4949da
mov edx, dword [esp + 0x1c]
xor eax, eax
inc eax
cmp edx, eax
jne 0x493f90
mov eax, dword [ebx + 0x10]
mov eax, dword [eax + 0x1c]
cmp eax, dword [esi + 0x3c]
je 0x493f90
push dword [esi]
push 0x43074c
push edi
call fcn.0045c6d7
add esp, 0xc
jmp 0x4949a0
test byte [esi + 0x1c], 0x80
je 0x493fc5
mov ecx, esi
call fcn.00490d43
mov dword [esp + 0x3c], eax
jmp 0x493fc5
mov esi, dword [edi + 0xf4]
mov dword [esp + 0x38], esi
test esi, esi
je 0x4949da
mov edx, dword [esi + 0x3c]
mov ecx, ebx
call fcn.004a2c91
mov edx, eax
mov dword [esp + 0x1c], edx
mov eax, edx
push 7
shl eax, 4
add eax, dword [ebx + 0x10]
push 0x42e97c
push dword [esi]
mov dword [esp + 0x20], eax
call fcn.0045c84f
add esp, 0xc
test eax, eax
jne 0x493ffd
cmp byte [ebx + 0xb1], al
jne 0x493ffd
cmp dword [esp + 0x24], eax
je 0x493ffd
push dword [esi]
push 0x430780
jmp 0x493f82
mov al, byte [esi + 0x2b]
cmp al, 2
jne 0x494016
push 0x43079c
push edi
call fcn.0045c6d7
pop ecx
pop ecx
jmp 0x4949a0
cmp al, 1
jne 0x494021
push 0x4307b8
jmp 0x494009
mov eax, dword [esp + 0x50]
test eax, eax
je 0x4940ee
mov edx, dword [eax]
mov ecx, ebx
push 0
push dword [eax + 4]
call fcn.004599e1
pop ecx
pop ecx
mov ecx, eax
mov dword [esp + 0x34], eax
call fcn.0045c756
mov eax, ecx
test eax, eax
je 0x4949a0
push dword [esi]
mov edx, eax
mov ecx, edi
push 0x430744
call fcn.00490c4c
pop ecx
pop ecx
test eax, eax
jne 0x4949a0
cmp byte [edi + 0xd8], 2
jae 0x49418c
cmp byte [ebx + 0xb1], al
jne 0x4940a5
mov eax, dword [esp + 0x14]
mov ecx, ebx
mov edx, dword [esp + 0x34]
push dword [eax]
call fcn.004901ec
pop ecx
test eax, eax
je 0x4940a5
push dword [esp + 0x34]
push 0x4307dc
jmp 0x493f82
mov eax, dword [esp + 0x14]
mov ecx, ebx
mov edx, dword [esp + 0x34]
push dword [eax]
call fcn.00490552
pop ecx
test eax, eax
je 0x494127
cmp dword [ebp + 0x24], 0
jne 0x4940cf
push dword [esp + 0x34]
push 0x430800
jmp 0x493f82
cmp dword [edi + 0x78], 0
mov ecx, edi
mov edx, dword [esp + 0x1c]
cmovne ecx, dword [edi + 0x78]
call fcn.0049552b
mov ecx, edi
call fcn.00490de7
jmp 0x4949a0
mov eax, dword [esi + 8]
xor ecx, ecx
inc ecx
jmp 0x4940fa
mov eax, dword [eax + 0x14]
inc ecx
test eax, eax
jne 0x4940f6
push ecx
push dword [esi]
push 0x430818
push ebx
call fcn.0045b770
add esp, 0x10
mov dword [esp + 0x34], eax
test eax, eax
je 0x4949a0
cmp byte [edi + 0xd8], 0
je 0x494127
inc byte [eax + 7]
cmp byte [edi + 0xd8], 2
jae 0x49418c
mov eax, dword [esp + 0x14]
mov ecx, 0x42e984
cmp dword [esp + 0x1c], 1
mov eax, dword [eax]
push eax
mov dword [esp + 0x30], eax
mov eax, 0x42e790
push 0
cmove eax, ecx
mov ecx, edi
push eax
push 0x12
pop edx
call fcn.0048fcdf
add esp, 0xc
test eax, eax
jne 0x4949a0
push dword [esp + 0x2c]
inc eax
mov ecx, edi
push dword [esi]
cmp dword [esp + 0x24], eax
push dword [esp + 0x3c]
push 3
pop edx
cmovne edx, eax
call fcn.0048fcdf
add esp, 0xc
test eax, eax
jne 0x4949a0
mov edx, dword [esp + 0x20]
test edx, edx
jne 0x4941f9
movsx eax, word [esi + 0x22]
mov ecx, dword [esi + 4]
add eax, eax
push 8
pop edx
or word [ecx + eax*8 - 2], dx
mov ecx, dword [ecx + eax*8 - 0x10]
mov dword [esp + 0x2c], ecx
call fcn.0045c53b
mov dword [esp + 0x30], eax
mov ecx, ebx
push 0
lea eax, [esp + 0x30]
push eax
push 0x3b
pop edx
call fcn.00485a5b
pop ecx
pop ecx
mov ecx, dword [edi]
mov edx, eax
call fcn.004869e7
mov dword [esp + 0x20], eax
test eax, eax
je 0x4949a0
mov ecx, dword [ebp + 0x20]
xor eax, eax
movzx edx, cl
cmp ecx, 0xffffffff
cmovne eax, edx
mov edx, dword [esp + 0x20]
imul ecx, dword [edx], 0x14
mov byte [ecx + edx - 4], al
jmp 0x494226
mov ecx, dword [edi]
mov eax, dword [edx]
cmp eax, dword [ecx + 0x80]
jle 0x49421c
push 0x430744
push 0x42eecc
push edi
call fcn.0045c6d7
mov edx, dword [esp + 0x2c]
add esp, 0xc
cmp dword [edi + 0x24], 0
jne 0x4949a0
mov ecx, dword [edx]
mov dword [esp + 0x40], ecx
test ecx, ecx
jle 0x49426d
mov esi, dword [esp + 0x28]
lea eax, [edx + 8]
mov dword [esp + 0x2c], eax
mov edx, dword [eax]
cmp byte [edx], 0x71
jne 0x494255
mov ecx, dword [edx + 8]
call fcn.0045c53b
mov ecx, dword [esp + 0x40]
inc eax
add esi, eax
mov eax, dword [esp + 0x2c]
add eax, 0x14
sub ecx, 1
mov dword [esp + 0x2c], eax
mov dword [esp + 0x40], ecx
jne 0x49423b
mov dword [esp + 0x28], esi
mov esi, dword [esp + 0x38]
mov ecx, dword [esp + 0x34]
call fcn.0045c53b
mov edx, dword [esp + 0x3c]
mov dword [esp + 0x2c], eax
test edx, edx
je 0x494288
movzx ecx, word [edx + 0x32]
jmp 0x49428b
xor ecx, ecx
inc ecx
lea edx, [esp + 0x18]
push edx
mov edx, dword [esp + 0x2c]
inc edx
add eax, edx
push eax
mov eax, dword [esp + 0x28]
movzx edx, word [eax]
add dx, cx
mov ecx, ebx
call fcn.00493d5f
mov ebx, eax
mov eax, dword [esp + 0x18]
pop ecx
pop ecx
cmp byte [eax + 0x57], 0
jne 0x494511
mov edx, dword [esp + 0x18]
mov ecx, dword [esp + 0x2c]
mov dword [ebx], edx
lea eax, [edx + 1]
add eax, ecx
inc ecx
push ecx
push dword [esp + 0x38]
mov dword [esp + 0x48], eax
push edx
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [esp + 0x54]
add esp, 0xc
mov byte [ebx + 0x36], al
neg eax
mov edx, dword [esp + 0x20]
sbb ecx, ecx
mov dword [ebx + 0xc], esi
push 8
pop eax
and ecx, eax
mov eax, dword [ebx + 0x38]
and eax, 0xfffffff7
or ecx, eax
movzx eax, byte [ebp + 0x28]
xor eax, ecx
and eax, 3
xor eax, ecx
mov ecx, dword [esp + 0x1c]
mov dword [ebx + 0x38], eax
add ecx, ecx
mov eax, dword [esp + 0x10]
mov eax, dword [eax + 0x10]
mov eax, dword [eax + ecx*8 + 0xc]
mov ecx, dword [esp + 0x54]
mov dword [ebx + 0x18], eax
movzx eax, word [edx]
mov word [ebx + 0x32], ax
test ecx, ecx
je 0x494352
push 0
push ecx
push 2
mov edx, esi
mov ecx, edi
call fcn.00484fa3
mov eax, dword [esp + 0x60]
add esp, 0xc
and dword [esp + 0x54], 0
mov edx, dword [esp + 0x20]
mov dword [ebx + 0x24], eax
movzx eax, word [ebx + 0x32]
cmp byte [edi + 0xd8], 2
movzx ecx, ax
mov eax, dword [esp + 0x14]
mov eax, dword [eax + 0xc]
mov al, byte [eax + 0x4c]
mov byte [esp + 0x47], al
lea eax, [edx + 8]
mov dword [esp + 0x28], eax
jb 0x49437b
and dword [esp + 0x20], 0
mov dword [ebx + 0x28], edx
xor edx, edx
and dword [esp + 0x18], edx
mov dword [esp + 0x14], edx
cmp word [esp + 0x18], cx
jae 0x49452b
mov ecx, dword [eax]
call fcn.0049191b
mov ecx, dword [esp + 0x28]
mov edx, esi
push 0
push dword [ecx]
mov ecx, edi
push 0x20
call fcn.00484fa3
xor edx, edx
add esp, 0xc
cmp dword [edi + 0x24], edx
jne 0x494511
mov eax, dword [esp + 0x28]
mov ecx, dword [eax]
call fcn.00485271
cmp byte [eax], 0xa7
je 0x49440a
cmp esi, dword [edi + 0xf4]
je 0x494504
cmp dword [ebx + 0x28], edx
jne 0x4943e4
mov eax, dword [esp + 0x20]
mov dword [ebx + 0x28], eax
mov dword [esp + 0x20], edx
mov edx, dword [esp + 0x14]
push 0xfffffffffffffffe
pop eax
mov ecx, eax
mov eax, dword [ebx + 4]
push ecx
pop edi
mov word [eax + edx*2], di
mov eax, dword [ebx + 0x38]
mov edi, dword [esp + 0x4c]
and eax, 0xfffffff7
or eax, 0x800
mov dword [ebx + 0x38], eax
jmp 0x494446
movsx ecx, word [eax + 0x20]
test ecx, ecx
jns 0x494418
movsx ecx, word [esi + 0x20]
jmp 0x49443b
mov eax, dword [esi + 4]
mov edx, ecx
add edx, edx
test byte [eax + edx*8 + 4], 0xf
jne 0x49442a
and dword [ebx + 0x38], 0xfffffff7
mov eax, dword [esi + 4]
test byte [eax + edx*8 + 0xe], 0x20
je 0x49443b
or dword [ebx + 0x38], 0xc00
mov eax, dword [ebx + 4]
mov edx, dword [esp + 0x14]
mov word [eax + edx*2], cx
mov eax, dword [esp + 0x28]
mov eax, dword [eax]
cmp byte [eax], 0x71
jne 0x494487
mov ecx, dword [eax + 8]
call fcn.0045c53b
mov ecx, dword [esp + 0x28]
lea esi, [eax + 1]
mov eax, dword [ecx]
push esi
push dword [eax + 8]
push dword [esp + 0x48]
call sub.VCRUNTIME140.dll_memcpy
mov ecx, dword [esp + 0x4c]
add esp, 0xc
mov dword [esp + 0x2c], ecx
lea eax, [esi + ecx]
mov esi, dword [esp + 0x38]
mov dword [esp + 0x40], eax
jmp 0x49449c
test ecx, ecx
js 0x4944a0
shl ecx, 4
add ecx, dword [esi + 4]
call fcn.004908fc
mov ecx, eax
mov dword [esp + 0x2c], eax
test ecx, ecx
jne 0x4944a9
mov ecx, 0x4256c0
mov dword [esp + 0x2c], ecx
mov eax, dword [esp + 0x10]
cmp byte [eax + 0xb1], 0
jne 0x4944c3
mov edx, ecx
mov ecx, edi
call fcn.00495eac
test eax, eax
je 0x494511
mov edx, dword [esp + 0x14]
mov eax, dword [ebx + 0x20]
mov ecx, dword [esp + 0x2c]
mov dword [eax + edx*4], ecx
mov eax, dword [esp + 0x28]
movzx ecx, byte [eax + 8]
xor eax, eax
cmp byte [esp + 0x47], 4
cmovb ecx, eax
mov eax, dword [ebx + 0x1c]
add dword [esp + 0x28], 0x14
mov byte [edx + eax], cl
inc edx
movzx eax, word [ebx + 0x32]
mov dword [esp + 0x14], edx
cmp edx, eax
jge 0x49452b
mov eax, dword [esp + 0x28]
jmp 0x494390
push 0x430830
push edi
call fcn.0045c6d7
pop ecx
pop ecx
test ebx, ebx
je 0x49499c
mov edx, ebx
mov ebx, dword [esp + 0x10]
mov ecx, ebx
call fcn.004905bd
jmp 0x4949a0
mov ecx, dword [esp + 0x3c]
test ecx, ecx
je 0x4945b8
and dword [esp + 0x18], 0
xor eax, eax
cmp ax, word [ecx + 0x32]
jae 0x4945cc
mov esi, dword [esp + 0x18]
mov edi, dword [esp + 0x14]
mov eax, dword [ecx + 4]
movzx edx, word [ebx + 0x32]
push esi
push ecx
movzx eax, word [eax + esi*2]
mov ecx, ebx
mov dword [esp + 0x20], eax
call fcn.0049211b
pop ecx
pop ecx
test eax, eax
je 0x494579
mov eax, 0xffff
add word [ebx + 0x34], ax
jmp 0x4945a1
mov eax, dword [ebx + 4]
mov edx, dword [esp + 0x3c]
mov ecx, dword [esp + 0x18]
mov word [eax + edi*2], cx
mov eax, dword [edx + 0x20]
mov ecx, dword [ebx + 0x20]
mov eax, dword [eax + esi*4]
mov dword [ecx + edi*4], eax
mov eax, dword [edx + 0x1c]
mov ecx, dword [ebx + 0x1c]
mov al, byte [esi + eax]
mov byte [edi + ecx], al
inc edi
mov ecx, dword [esp + 0x3c]
inc esi
movzx eax, word [ecx + 0x32]
cmp esi, eax
jl 0x494550
mov edi, dword [esp + 0x4c]
mov esi, dword [esp + 0x38]
jmp 0x4945cc
mov eax, dword [ebx + 4]
or ecx, 0xffffffff
mov word [eax + edx*2], cx
mov eax, dword [ebx + 0x20]
mov dword [eax + edx*4], 0x4256c0
mov ecx, ebx
call fcn.00494a2d
cmp dword [edi + 0xf4], 0
jne 0x4945e3
mov ecx, ebx
call fcn.004920c1
mov ecx, ebx
call fcn.0049217b
cmp dword [esp + 0x24], 0
je 0x494645
movzx ecx, word [ebx + 0x34]
movsx eax, word [esi + 0x22]
cmp ecx, eax
jl 0x494645
mov eax, dword [ebx + 0x38]
xor ecx, ecx
or eax, 0x20
xor edx, edx
mov dword [esp + 0x2c], eax
mov dword [ebx + 0x38], eax
movzx eax, word [esi + 0x22]
cmp cx, ax
jge 0x494645
mov dword [esp + 0x18], eax
movsx eax, word [esi + 0x20]
cmp edx, eax
je 0x49462f
mov ecx, ebx
call fcn.00490d5b
test ax, ax
js 0x49463b
mov eax, dword [esp + 0x18]
inc edx
cwde
cmp edx, eax
jge 0x494645
jmp 0x49461b
mov eax, dword [esp + 0x2c]
and eax, 0xffffffdf
mov dword [ebx + 0x38], eax
cmp esi, dword [edi + 0xf4]
jne 0x49470e
mov ecx, dword [esi + 8]
mov dword [esp + 0x14], ecx
test ecx, ecx
je 0x49470e
movzx edx, word [ebx + 0x32]
movzx eax, word [ecx + 0x32]
cmp ax, dx
jne 0x4946ff
mov edi, eax
xor edx, edx
mov dword [esp + 0x2c], edi
xor edi, edi
cmp di, ax
mov dword [esp + 0x3c], edx
mov edi, dword [esp + 0x4c]
jae 0x4946f0
mov esi, dword [esp + 0x14]
mov ecx, dword [ebx + 4]
mov dword [esp + 0x40], eax
movzx eax, ax
mov edi, dword [esi + 4]
mov dword [esp + 0x18], ecx
sub edi, ecx
mov dword [esp + 0x2c], eax
mov ax, word [edi + ecx]
cmp ax, word [ecx]
jne 0x4946e4
mov eax, dword [esp + 0x3c]
mov edx, dword [ebx + 0x20]
mov ecx, dword [esi + 0x20]
mov edx, dword [edx + eax*4]
mov ecx, dword [ecx + eax*4]
call fcn.0045c824
mov edx, dword [esp + 0x3c]
test eax, eax
jne 0x4946e4
mov ecx, dword [esp + 0x18]
inc edx
mov eax, dword [esp + 0x40]
add ecx, 2
movzx eax, ax
mov dword [esp + 0x3c], edx
mov dword [esp + 0x18], ecx
cmp edx, eax
jl 0x4946a3
mov edi, dword [esp + 0x4c]
mov esi, dword [esp + 0x38]
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x2c]
movzx eax, ax
cmp edx, eax
je 0x49476e
movzx edx, word [ebx + 0x32]
mov ecx, dword [ecx + 0x14]
mov dword [esp + 0x14], ecx
test ecx, ecx
jne 0x494664
cmp byte [edi + 0xd8], 2
mov eax, dword [esp + 0x10]
jae 0x494978
cmp byte [eax + 0xb1], 0
je 0x494806
cmp dword [esp + 0x24], 0
je 0x4947d6
mov eax, dword [eax + 0xac]
mov ecx, ebx
mov dword [ebx + 0x2c], eax
call fcn.004a252d
test eax, eax
je 0x4947d6
push 0x43089c
push edi
call fcn.0045c6d7
pop ecx
pop ecx
mov ecx, 0x1deb2
call fcn.004c5cb7
mov dword [edi + 0xc], eax
jmp 0x494511
mov al, byte [ecx + 0x36]
mov dl, byte [ebx + 0x36]
cmp al, dl
je 0x4947a1
cmp al, 0xb
je 0x494795
cmp dl, 0xb
je 0x494795
push 0
push 0x430870
push edi
call fcn.0045c6d7
mov ecx, dword [esp + 0x20]
add esp, 0xc
cmp byte [ecx + 0x36], 0xb
jne 0x4947a1
mov al, byte [ebx + 0x36]
mov byte [ecx + 0x36], al
cmp byte [ebp + 0x28], 2
jne 0x4947b3
mov eax, dword [ecx + 0x38]
and eax, 0xfffffffc
xor eax, 2
mov dword [ecx + 0x38], eax
cmp byte [edi + 0xd8], 2
jb 0x494511
mov eax, dword [edi + 0xf8]
mov dword [ebx + 0x14], eax
mov dword [edi + 0xf8], ebx
xor ebx, ebx
jmp 0x494511
mov ecx, dword [ebx + 0x18]
mov edx, dword [ebx]
add ecx, 0x18
push ebx
call fcn.0045de5b
pop ecx
test eax, eax
je 0x4947f7
mov ecx, dword [esp + 0x10]
call fcn.00459aa2
jmp 0x494511
mov eax, dword [esp + 0x10]
xor ecx, ecx
inc ecx
or dword [eax + 0x18], ecx
jmp 0x494978
test byte [esi + 0x1c], 0x80
je 0x494818
mov ecx, dword [esp + 0x24]
test ecx, ecx
je 0x49497c
inc dword [edi + 0x2c]
mov ecx, edi
mov eax, dword [edi + 0x2c]
mov dword [esp + 0x2c], eax
call fcn.004a5717
mov dword [esp + 0x38], eax
test eax, eax
je 0x494511
push dword [esp + 0x1c]
xor eax, eax
mov ecx, edi
lea edx, [eax + 1]
call fcn.004955b2
pop ecx
mov ecx, dword [esp + 0x38]
xor eax, eax
push eax
push eax
push eax
mov edx, 0xb8
call fcn.004746eb
mov ecx, dword [esp + 0x44]
add esp, 0xc
mov edx, 0x93
mov dword [ebx + 0x2c], eax
push 2
push dword [esp + 0x30]
push dword [esp + 0x24]
call fcn.004746eb
add esp, 0xc
cmp dword [ebp + 0x18], 0
je 0x4948c7
mov edx, dword [edi + 0xd0]
add edx, dword [edi + 0xcc]
mov eax, dword [esp + 0x50]
mov ecx, edx
sub ecx, dword [eax]
push dword [eax]
cmp byte [edx - 1], 0x3b
mov edx, 0x4308b0
lea eax, [ecx - 1]
cmovne eax, ecx
cmp dword [esp + 0x4c], 0
push eax
mov eax, 0x420b82
cmovne eax, edx
push eax
push 0x4308b8
push dword [esp + 0x20]
call fcn.0045b770
add esp, 0x14
jmp 0x4948c9
xor eax, eax
mov ecx, dword [esp + 0x1c]
push eax
push dword [esp + 0x30]
mov dword [esp + 0x50], eax
add ecx, ecx
push dword [esi]
mov eax, dword [esp + 0x1c]
push dword [ebx]
mov eax, dword [eax + 0x10]
push dword [eax + ecx*8]
push 0x4308cc
push edi
call fcn.0049012c
mov edx, dword [esp + 0x64]
add esp, 0x1c
test edx, edx
je 0x494905
mov ecx, dword [esp + 0x10]
call fcn.004594d9
cmp dword [esp + 0x24], 0
je 0x494962
push dword [esp + 0x2c]
mov edx, ebx
mov ecx, edi
call fcn.00493a5e
mov edx, dword [esp + 0x20]
pop ecx
mov ecx, edi
call fcn.00491d48
push 0
push ecx
push dword [ebx]
push 0x430908
push dword [esp + 0x20]
call fcn.0045b770
mov edx, dword [esp + 0x30]
add esp, 0x10
mov ecx, dword [esp + 0x3c]
push eax
call fcn.004749a2
mov ecx, dword [esp + 0x40]
xor eax, eax
push 0
inc eax
mov edx, 0xa6
push eax
push 0
call fcn.004746eb
add esp, 0x14
mov edx, dword [ebx + 0x2c]
mov ecx, dword [esp + 0x38]
call fcn.00474f68
mov ecx, dword [ecx + 0x6c]
mov dword [eax + 8], ecx
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x24]
cmp byte [eax + 0xb1], 0
jne 0x4949a5
test ecx, ecx
je 0x4949a5
cmp byte [edi + 0xd8], 2
jb 0x494511
mov dword [edi + 0xf8], ebx
mov ebx, dword [esp + 0x10]
add esi, 8
jmp 0x4949bb
mov eax, dword [esi + 8]
mov dword [ebx + 0x14], eax
mov dword [esi + 8], ebx
jmp 0x49499c
cmp byte [ecx + 0x36], 5
lea edx, [ecx + 0x14]
je 0x4949d4
mov esi, edx
mov ecx, dword [esi]
test ecx, ecx
jne 0x4949b0
jmp 0x4949da
cmp byte [eax + 0x36], 5
je 0x4949da
mov dword [esi], eax
lea esi, [eax + 0x14]
mov eax, dword [esi]
mov dword [edx], eax
mov dword [esi], ecx
mov eax, dword [edx]
test eax, eax
jne 0x4949c3
mov eax, dword [esp + 0x54]
test eax, eax
je 0x4949eb
mov edx, eax
mov ecx, ebx
call fcn.0048602a
mov eax, dword [esp + 0x20]
test eax, eax
je 0x4949fc
mov edx, eax
mov ecx, ebx
call fcn.00486cac
mov edx, dword [esp + 0x24]
mov ecx, ebx
call fcn.00495018
mov eax, dword [esp + 0x34]
test eax, eax
je 0x494a18
mov edx, eax
mov ecx, ebx
call fcn.004594d9
mov ecx, dword [esp + 0x8c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004caec8
mov esp, ebp
pop ebp
ret