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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0xf0
mov ebx, dword [ebp + 8]
test ebx, ebx
je 0x4a458d
mov esi, dword [ebp + 0xc]
mov dword [ebx + 0xe0], esi
call fcn.004aa9f7
mov dword [ebx + 0xe8], eax
test eax, eax
je 0x4a4d25
mov ecx, dword [ebp + 0x10]
test cl, 2
je 0x4a4523
push 8
push 0
push eax
call fcn.004aa774
mov ecx, dword [ebp + 0x10]
add esp, 0xc
mov esi, dword [ebx + 0xe8]
mov dword [ebx + 0xe4], esi
test cl, 5
je 0x4a4cd1
xor edi, edi
test cl, 8
jne 0x4a4c3c
xor esi, esi
mov dword [esp + 0x44], esi
mov dword [esp + 0x40], esi
mov dword [esp + 0xc], esi
mov dword [esp + 8], esi
mov word [esp + 0x1c], si
mov dword [esp + 0x28], esi
mov dword [esp + 0x3c], esi
mov dword [esp + 0x38], esi
mov word [esp + 0x50], si
mov ebx, dword [ebx + 0xe0]
mov dword [esp + 0x70], 0x6054b50
push 2
push esi
push esi
push ebx
call fcn.004a9ff0
add esp, 0x10
test eax, eax
je 0x4a4597
mov dword [esp + 4], eax
jmp 0x4a46b4
mov edi, 0xffffff9a
jmp 0x4a4d2a
push ebx
call fcn.004a9fae
add esp, 4
mov ecx, 0x100000
cmp eax, ecx
mov edi, edx
sbb edi, 0
cmovl ecx, eax
cmovl esi, edx
lea eax, [esp + 8]
lea edx, [esp + 0x70]
push eax
push esi
push ecx
push 4
push edx
push ebx
call fcn.004aa24c
add esp, 0x18
mov dword [esp + 4], eax
test eax, eax
jne 0x4a46b4
lea eax, [esp + 0x28]
push eax
mov edi, dword [ebp + 8]
push dword [edi + 0xe0]
call fcn.004a9caa
add esp, 8
test eax, eax
jne 0x4a460a
lea esi, [esp + 0x1c]
push esi
push dword [edi + 0xe0]
call fcn.004a9c71
add esp, 8
test eax, eax
je 0x4a4d8d
movzx ebx, word [esp + 0x1c]
lea ecx, [edi + 0x104]
mov dword [esp + 0x24], ecx
mov dword [edi + 0x104], ebx
movzx edx, bx
xor esi, esi
lea ecx, [edi + 0x140]
mov dword [esp + 0x18], ecx
mov dword [edi + 0x140], edx
mov dword [edi + 0x144], 0
mov edi, edx
mov ecx, edx
xor edx, edx
mov dword [esp + 0x14], edi
xor ecx, edi
xor edx, esi
or edx, ecx
mov ecx, 0xffffff99
cmove ecx, eax
mov dword [esp + 4], ecx
test ecx, ecx
jne 0x4a46b4
mov edi, esi
lea eax, [esp + 0x28]
push eax
mov eax, dword [ebp + 8]
push dword [eax + 0xe0]
call fcn.004a9caa
add esp, 8
mov dword [esp + 4], eax
test eax, eax
jne 0x4a46b4
mov eax, dword [esp + 0x28]
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x128], eax
mov dword [ecx + 0x12c], 0
lea eax, [esp + 0x28]
push eax
push dword [ecx + 0xe0]
call fcn.004a9caa
add esp, 8
mov dword [esp + 4], eax
test eax, eax
je 0x4a4dfa
mov ebx, dword [ebp + 8]
cmp byte [ebx + 0x100], 0
je 0x4a4745
xor esi, esi
mov dword [esp + 0x1c], esi
mov dword [esp + 0x44], esi
mov dword [esp + 0x40], esi
mov dword [esp + 0xc], esi
mov dword [esp + 8], esi
mov dword [esp + 0x3c], esi
mov dword [esp + 0x38], esi
mov dword [esp + 0x34], esi
mov dword [esp + 0x30], esi
mov dword [esp + 0x2c], esi
mov dword [esp + 0x28], esi
mov dword [esp + 0x50], 0x8074b50
mov dword [esp + 0x64], 0x4034b50
mov dword [esp + 0x6c], 0x2014b50
mov dword [esp + 0x60], esi
mov eax, dword [ebx + 0xe8]
mov dword [esp + 0x14], eax
push esi
push esi
push 8
push dword [ebx + 0xe0]
call fcn.004aa584
add esp, 0x10
push dword [ebx + 0xe0]
call fcn.004a9fae
add esp, 4
test edx, edx
mov edi, dword [esp + 4]
js 0x4a474e
xor esi, esi
inc esi
jmp 0x4a4774
mov edi, dword [esp + 4]
jmp 0x4a4caa
xor eax, eax
dec eax
push eax
push eax
push 8
push dword [ebx + 0xe0]
call fcn.004aa584
add esp, 0x10
push esi
push esi
push esi
push dword [ebx + 0xe0]
call fcn.004a9ff0
add esp, 0x10
call fcn.004aa9f7
mov dword [esp + 0x1c], eax
mov dword [esp + 0x24], eax
test eax, eax
je 0x4a4caa
mov dword [esp + 0x68], esi
mov esi, dword [esp + 0x14]
push esi
call fcn.004a9b4a
add esp, 4
test eax, eax
je 0x4a47cd
mov edi, 8
xor ebx, ebx
push edi
push ebx
push esi
call fcn.004aa774
add esp, 0xc
mov esi, eax
push edi
mov edi, dword [esp + 8]
push ebx
mov ebx, dword [ebp + 8]
push dword [esp + 0x2c]
call fcn.004aa774
add esp, 0xc
test esi, esi
jne 0x4a4802
jmp 0x4a47dd
push 8
push 0
push dword [esp + 0x2c]
call fcn.004aa774
add esp, 0xc
lea eax, [esp + 8]
lea ecx, [esp + 0x64]
push eax
push bind
push 0xffffffffffffffff
push 4
push ecx
push dword [ebx + 0xe0]
call fcn.004aa046
add esp, 0x18
test eax, eax
je 0x4a4814
lea eax, [esp + 0x1c]
push eax
call fcn.004aaa15
add esp, 4
jmp 0x4a4caa
mov dword [esp + 0x5c], 0
mov dword [esp + 0x4c], 0
mov dword [esp + 0x20], 0
mov dword [esp + 0x58], 0
mov dword [esp + 0x54], 0
push dword [ebx + 0xe0]
call fcn.004a9fae
add esp, 4
mov esi, eax
mov edi, ebx
mov ebx, edx
lea eax, [esp + 0x38]
push eax
push 8
push dword [edi + 0xe0]
call fcn.004aa567
add esp, 0xc
xorps xmm0, xmm0
movaps xmmword [esp + 0x70], xmm0
movaps xmmword [esp + 0x80], xmm0
movaps xmmword [esp + 0x90], xmm0
movaps xmmword [esp + 0xa0], xmm0
movaps xmmword [esp + 0xb0], xmm0
movaps xmmword [esp + 0xc0], xmm0
movaps xmmword [esp + 0xd0], xmm0
mov ecx, dword [edi + 0xe0]
xor edx, edx
inc edx
push dword [esp + 0x24]
lea eax, [esp + 0x74]
push eax
call fcn.004a5ccb
add esp, 8
test eax, eax
jne 0x4a4bb5
mov dword [esp + 0xb8], esi
mov dword [esp + 0xbc], ebx
cmp dword [esp + 0x3c], 0
js 0x4a48da
mov eax, dword [esp + 0x38]
jmp 0x4a48e4
xor eax, eax
mov dword [esp + 0x3c], eax
mov dword [esp + 0x38], eax
mov edi, dword [ebp + 8]
lea esi, [esp + 8]
mov dword [esp + 0xb0], eax
push dword [edi + 0xe0]
call fcn.004a9fae
add esp, 4
mov ebx, eax
mov dword [esp + 0x18], edx
mov eax, dword [esp + 0x98]
mov ecx, dword [esp + 0x9c]
cmp eax, 1
mov edx, ecx
sbb edx, 0
jl 0x4a4930
push 1
push ecx
push eax
push dword [edi + 0xe0]
call fcn.004a9ff0
add esp, 0x10
push esi
mov eax, bind
push eax
xor eax, eax
dec eax
push eax
push 4
lea eax, [esp + 0x74]
push eax
push dword [edi + 0xe0]
call fcn.004aa046
add esp, 0x18
mov esi, eax
cmp eax, 0xffffff95
jne 0x4a49bf
push 0
push dword [esp + 0x1c]
push ebx
push dword [edi + 0xe0]
call fcn.004a9ff0
add esp, 0x10
lea eax, [esp + 8]
push eax
mov eax, bind
push eax
xor eax, eax
dec eax
push eax
push 4
lea eax, [esp + 0x7c]
push eax
push dword [edi + 0xe0]
call fcn.004aa046
add esp, 0x18
cmp eax, 0xffffff95
jne 0x4a49bf
push 2
xor eax, eax
push eax
push eax
push dword [edi + 0xe0]
call fcn.004a9ff0
add esp, 0x10
push dword [edi + 0xe0]
call fcn.004a9fae
add esp, 4
mov dword [esp + 0xc], edx
mov dword [esp + 8], eax
test byte [esp + 0x74], 8
jne 0x4a49d6
mov eax, dword [esp + 0x9c]
or eax, dword [esp + 0x98]
jne 0x4a4a3f
lea eax, [esp + 0x40]
push eax
push 0
push 0x18
push 4
lea eax, [esp + 0x60]
push eax
mov eax, dword [ebp + 8]
push dword [eax + 0xe0]
call fcn.004aa24c
add esp, 0x18
test eax, eax
je 0x4a4a4c
cmp esi, 0xffffff95
je 0x4a4a3f
test byte [esp + 0x74], 8
je 0x4a4b0c
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0xc]
add eax, 1
adc ecx, 0
mov dword [esp + 8], eax
mov dword [esp + 0xc], ecx
push 0
push ecx
push eax
mov edi, dword [ebp + 8]
push dword [edi + 0xe0]
call fcn.004a9ff0
add esp, 0x10
lea esi, [esp + 8]
jmp 0x4a4930
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0xc]
jmp 0x4a4b14
movzx eax, word [esp + 0xaa]
push 0
xor edi, edi
inc edi
push edi
push eax
push dword [esp + 0xd8]
call fcn.004a7afa
add esp, 0x10
test eax, eax
mov edx, dword [esp + 0x5c]
movzx edx, dl
cmove edx, edi
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0xe0]
mov dword [esp + 0x5c], edx
movzx edx, dl
lea eax, [esp + 0x28]
push eax
lea eax, [esp + 0x34]
push eax
lea eax, [esp + 0x68]
push eax
call fcn.004a7b62
add esp, 0xc
test eax, eax
jne 0x4a4b02
cmp dword [esp + 0x90], 0
jne 0x4a4ab6
mov eax, dword [esp + 0x60]
mov dword [esp + 0x90], eax
mov eax, dword [esp + 0x98]
or eax, dword [esp + 0x9c]
jne 0x4a4adc
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x34]
mov dword [esp + 0x9c], ecx
mov dword [esp + 0x98], eax
mov eax, dword [esp + 0xa0]
or eax, dword [esp + 0xa4]
jne 0x4a4b02
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x2c]
mov dword [esp + 0xa4], ecx
mov dword [esp + 0xa0], eax
mov eax, dword [esp + 0x40]
mov ecx, dword [esp + 0x44]
jmp 0x4a4b14
mov eax, dword [esp + 0x4c]
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x4c], eax
sub eax, ebx
mov dword [esp + 0x20], ecx
sbb ecx, dword [esp + 0x18]
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], ecx
test ecx, ecx
jle 0x4a4b66
mov edx, 0xfffffffe
cmp edx, dword [esp + 0xa0]
mov edx, 0
sbb edx, dword [esp + 0xa4]
jl 0x4a4b66
mov dword [esp + 0x98], eax
mov dword [esp + 0x9c], ecx
xor eax, eax
mov dword [esp + 0xa4], eax
mov dword [esp + 0xa0], eax
mov ecx, dword [esp + 0x14]
xor edx, edx
lea eax, [esp + 0x70]
push eax
call fcn.004a6d93
add esp, 4
xor ecx, ecx
test eax, eax
sete cl
add dword [esp + 0x58], ecx
adc dword [esp + 0x54], 0
push 0
push dword [esp + 0x10]
push dword [esp + 0x10]
mov ebx, dword [ebp + 8]
push dword [ebx + 0xe0]
call fcn.004a9ff0
add esp, 0x10
mov edi, eax
cmp esi, 0xffffff95
je 0x4a4bba
test edi, edi
je 0x4a483c
jmp 0x4a4bba
mov edi, eax
mov ebx, dword [ebp + 8]
lea eax, [esp + 0x1c]
push eax
call fcn.004aaa15
add esp, 4
mov eax, dword [esp + 0x58]
or eax, dword [esp + 0x54]
je 0x4a4c31
mov esi, dword [esp + 0x14]
push esi
call fcn.004a9fae
add esp, 4
push eax
push esi
call fcn.004aa9df
add esp, 8
test esi, esi
je 0x4a4c0c
xor eax, eax
mov dword [ebx + 0x124], eax
mov dword [ebx + 0x120], eax
mov dword [ebx + 0xe4], esi
mov dword [ebx + 0x114], eax
mov dword [ebx + 0x110], eax
mov eax, dword [esp + 0x58]
mov dword [ebx + 0x140], eax
mov eax, dword [esp + 0x54]
mov dword [ebx + 0x144], eax
mov eax, dword [esp + 0x68]
mov dword [ebx + 0x104], eax
mov ecx, dword [ebp + 0x10]
xor edi, edi
jmp 0x4a4c3c
test edi, edi
mov ecx, dword [ebp + 0x10]
mov edi, dword [esp + 4]
je 0x4a4c2d
test cl, 4
je 0x4a4caa
test edi, edi
jne 0x4a4caa
mov eax, dword [ebx + 0x12c]
cmp dword [ebx + 0x128], 1
sbb eax, 0
jl 0x4a4d34
push 0
push dword [ebx + 0x124]
push dword [ebx + 0x120]
push dword [ebx + 0xe0]
call fcn.004a9ff0
add esp, 0x10
mov edi, eax
test eax, eax
jne 0x4a4d66
push dword [ebx + 0x128]
push dword [ebx + 0xe0]
push dword [ebx + 0xe8]
call fcn.004a9e23
add esp, 0xc
mov edi, eax
test eax, eax
jne 0x4a4d66
jmp 0x4a4d40
mov eax, dword [ebx + 0x120]
mov ecx, dword [ebx + 0x124]
mov dword [ebx + 0x114], ecx
mov dword [ebx + 0x110], eax
test edi, edi
je 0x4a4cd1
push ebx
call fcn.004a534e
add esp, 4
jmp 0x4a4d2a
call fcn.004aa9f7
mov dword [ebx + 0xf4], eax
test eax, eax
je 0x4a4d25
push 8
push 0
push eax
call fcn.004aa774
add esp, 0xc
call fcn.004aa9f7
mov dword [ebx + 0xf8], eax
test eax, eax
je 0x4a4d16
push 8
push 0
push eax
call fcn.004aa774
add esp, 0xc
mov eax, dword [ebp + 0x10]
mov dword [ebx + 0xfc], eax
xor edi, edi
jmp 0x4a4d2a
add ebx, 0xf4
push ebx
call fcn.004aa5b5
add esp, 4
mov edi, 0xfffffffc
mov eax, edi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
cmp dword [ebx + 0x130], 0x6054b50
jne 0x4a4d50
push 0
push dword [ebx + 0x124]
push dword [ebx + 0x120]
jmp 0x4a4d56
xor eax, eax
push 2
push eax
push eax
push dword [ebx + 0xe0]
call fcn.004a9ff0
add esp, 0x10
mov edi, eax
mov eax, dword [ebx + 0x104]
test eax, eax
je 0x4a4cc2
dec eax
push 0
push eax
push 8
push dword [ebx + 0xe0]
call fcn.004aa584
add esp, 0x10
jmp 0x4a4cc2
push esi
push dword [edi + 0xe0]
call fcn.004a9c71
add esp, 8
movzx ebx, word [esp + 0x1c]
lea ecx, [edi + 0x104]
mov dword [esp + 0x24], ecx
mov dword [edi + 0x104], ebx
test eax, eax
jne 0x4a461f
push esi
push dword [edi + 0xe0]
call fcn.004a9c71
add esp, 8
movzx ebx, word [esp + 0x1c]
lea ecx, [edi + 0x140]
mov dword [esp + 0x18], ecx
mov dword [edi + 0x140], ebx
mov dword [edi + 0x144], 0
test eax, eax
je 0x4a4f49
mov ecx, ebx
xor edx, edx
mov edi, ebx
jmp 0x4a4f6d
mov eax, dword [esp + 0x28]
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x120], eax
mov dword [ecx + 0x124], 0
lea eax, [esp + 0x50]
push eax
push dword [ecx + 0xe0]
call fcn.004a9c71
add esp, 8
test eax, eax
jne 0x4a4e7a
movzx ecx, word [esp + 0x50]
test cx, cx
je 0x4a4e7a
movzx esi, cx
lea eax, [esi + 1]
push eax
call fcn.007134ec
add esp, 4
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x14c], eax
test eax, eax
je 0x4a4e86
push esi
push eax
mov eax, dword [ebp + 8]
mov esi, edi
mov edi, eax
push dword [eax + 0xe0]
call fcn.004a9b65
add esp, 0xc
xor ecx, ecx
test eax, eax
cmovg ecx, eax
mov eax, dword [edi + 0x14c]
mov edi, esi
mov byte [eax + ecx], 0
jmp 0x4a4e86
mov dword [esp + 4], eax
test eax, eax
jne 0x4a46b4
mov dword [esp + 0x4c], edi
mov eax, dword [ebp + 8]
lea edi, [eax + 0x128]
lea ecx, [eax + 0x120]
cmp bx, 0xffff
mov dword [esp + 0x20], ecx
je 0x4a4eb4
mov eax, dword [ecx]
mov ecx, dword [ecx + 4]
mov edx, eax
not edx
or edx, ecx
jne 0x4a4f74
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0xc]
mov edx, dword [ebp + 8]
mov ebx, dword [edx + 0xe0]
xor edx, edx
mov dword [esp + 0x74], edx
mov dword [esp + 0x70], edx
mov dword [esp + 0x30], edx
add eax, 0xffffffec
adc ecx, 0xffffffff
push edx
push ecx
push eax
push ebx
call fcn.004a9ff0
add esp, 0x10
test eax, eax
je 0x4a5023
mov ecx, dword [esp + 0x18]
mov eax, dword [ecx]
mov ecx, dword [ecx + 4]
mov edx, eax
xor edx, 0xffff
or edx, ecx
je 0x4a526e
xor eax, dword [esp + 0x14]
xor ecx, dword [esp + 0x4c]
or ecx, eax
jne 0x4a526e
mov dword [esp + 4], 0xffffff99
mov eax, 0xffff
xor eax, dword [edi]
mov dword [esp + 0x14], edi
or eax, dword [edi + 4]
je 0x4a46b4
mov ecx, dword [esp + 0x20]
mov eax, dword [ecx]
mov ecx, dword [ecx + 4]
mov edx, eax
not edx
or edx, ecx
je 0x4a46b4
jmp 0x4a4f78
push esi
push dword [edi + 0xe0]
call fcn.004a9c71
add esp, 8
movzx esi, word [esp + 0x1c]
mov ecx, dword [edi + 0x140]
mov edx, dword [edi + 0x144]
mov edi, esi
mov ebx, edi
xor esi, esi
jmp 0x4a4644
mov dword [esp + 0x14], edi
xor ebx, ebx
push 0
push ecx
push eax
mov eax, dword [ebp + 8]
push dword [eax + 0xe0]
call fcn.004a9ff0
add esp, 0x10
mov dword [esp + 4], eax
test eax, eax
jne 0x4a46b4
mov eax, dword [ebp + 8]
lea esi, [eax + 0x130]
push esi
push dword [eax + 0xe0]
call fcn.004a9caa
add esp, 8
mov dword [esp + 4], eax
test eax, eax
jne 0x4a46b4
cmp dword [esi], 0x2014b50
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0xc]
jne 0x4a527b
mov edx, dword [esp + 0x20]
mov esi, dword [edx]
mov edx, dword [edx + 4]
mov dword [esp + 4], 0xffffff99
cmp eax, esi
mov edi, ecx
sbb edi, edx
jl 0x4a46b4
mov ebx, dword [esp + 0x14]
mov edi, dword [ebx]
add edi, esi
mov dword [esp + 0x14], ebx
mov ebx, dword [ebx + 4]
adc ebx, edx
cmp eax, edi
mov edi, ecx
sbb edi, ebx
jae 0x4a5016
sub eax, esi
sbb ecx, edx
mov edx, dword [esp + 0x14]
mov dword [edx], eax
mov dword [edx + 4], ecx
xor edi, edi
mov ebx, dword [ebp + 8]
mov ecx, dword [ebp + 0x10]
jmp 0x4a4c3c
lea esi, [esp + 0x30]
push esi
push ebx
call fcn.004a9caa
add esp, 8
cmp dword [esi], 0x7064b50
jne 0x4a4eed
test eax, eax
jne 0x4a4eed
push esi
push ebx
call fcn.004a9caa
add esp, 8
test eax, eax
jne 0x4a4eed
lea eax, [esp + 0x70]
push eax
push ebx
call fcn.004a9cf1
add esp, 8
test eax, eax
jne 0x4a4eed
push esi
push ebx
call fcn.004a9caa
add esp, 8
test eax, eax
jne 0x4a4eed
push 0
push dword [esp + 0x78]
push dword [esp + 0x78]
push ebx
call fcn.004a9ff0
add esp, 0x10
test eax, eax
jne 0x4a4eed
push esi
push ebx
call fcn.004a9caa
add esp, 8
cmp dword [esp + 0x30], 0x6064b50
jne 0x4a4eed
test eax, eax
jne 0x4a4eed
mov dword [esp + 0x14], edi
mov esi, dword [esp + 0x70]
mov edi, dword [esp + 0x74]
mov dword [esp + 8], esi
mov dword [esp + 0xc], edi
push 0
push edi
push esi
mov eax, dword [ebp + 8]
push dword [eax + 0xe0]
call fcn.004a9ff0
add esp, 0x10
mov ecx, eax
test eax, eax
jne 0x4a51d3
lea eax, [esp + 0x28]
push eax
mov eax, dword [ebp + 8]
push dword [eax + 0xe0]
call fcn.004a9caa
add esp, 8
mov ecx, eax
test eax, eax
jne 0x4a51d3
lea eax, [esp + 0x38]
push eax
mov eax, dword [ebp + 8]
push dword [eax + 0xe0]
call fcn.004a9cf1
add esp, 8
mov ecx, eax
test eax, eax
jne 0x4a51d3
mov ecx, dword [ebp + 8]
lea eax, [ecx + 0x148]
push eax
push dword [ecx + 0xe0]
call fcn.004a9c71
add esp, 8
mov ecx, eax
test eax, eax
jne 0x4a51d3
lea eax, [esp + 0x1c]
push eax
mov eax, dword [ebp + 8]
push dword [eax + 0xe0]
call fcn.004a9c71
add esp, 8
mov ecx, eax
test eax, eax
jne 0x4a51d3
lea eax, [esp + 0x28]
push eax
mov eax, dword [ebp + 8]
push dword [eax + 0xe0]
call fcn.004a9caa
add esp, 8
mov ecx, eax
test eax, eax
jne 0x4a51d3
push dword [esp + 0x24]
mov eax, dword [ebp + 8]
push dword [eax + 0xe0]
call fcn.004a9caa
add esp, 8
mov ecx, eax
test eax, eax
jne 0x4a51d3
push dword [esp + 0x18]
mov eax, dword [ebp + 8]
push dword [eax + 0xe0]
call fcn.004a9cf1
add esp, 8
mov ecx, eax
test eax, eax
jne 0x4a51d3
lea eax, [esp + 0x40]
push eax
mov eax, dword [ebp + 8]
push dword [eax + 0xe0]
call fcn.004a9cf1
add esp, 8
mov ecx, dword [esp + 0x18]
mov edx, dword [ecx + 4]
xor edx, dword [esp + 0x44]
mov ecx, dword [ecx]
xor ecx, dword [esp + 0x40]
or ecx, edx
mov ecx, 0xffffff99
cmovne eax, ecx
mov dword [esp + 4], eax
test eax, eax
jne 0x4a46b4
push dword [esp + 0x14]
mov ebx, dword [ebp + 8]
push dword [ebx + 0xe0]
call fcn.004a9cde
add esp, 8
mov dword [esp + 4], eax
cmp dword [ebx + 0x12c], 0
js 0x4a526e
cmp dword [esp + 4], 0
jne 0x4a46b4
push dword [esp + 0x20]
push dword [ebx + 0xe0]
call fcn.004a9cde
add esp, 8
mov ecx, dword [ebx + 0x124]
mov dword [esp + 4], 0xffffff99
test ecx, ecx
js 0x4a46b4
mov dword [esp + 4], eax
test eax, eax
jne 0x4a46b4
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x120]
or esi, edi
setne bl
jmp 0x4a4f7a
mov dword [esp + 4], 0xffffff99
jmp 0x4a46b4
test ecx, ecx
setg dl
not bl
mov dword [esp + 4], 0xffffff99
test bl, dl
jne 0x4a46b4
mov edx, dword [ebp + 8]
sub eax, dword [edx + 0x128]
sbb ecx, dword [edx + 0x12c]
push 0
push ecx
push eax
push dword [edx + 0xe0]
call fcn.004a9ff0
add esp, 0x10
mov dword [esp + 4], eax
test eax, eax
jne 0x4a46b4
push esi
mov eax, dword [ebp + 8]
push dword [eax + 0xe0]
call fcn.004a9caa
add esp, 8
mov dword [esp + 4], eax
test eax, eax
jne 0x4a46b4
cmp dword [esi], 0x2014b50
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 0x20]
mov esi, dword [edx]
mov edx, dword [edx + 4]
jne 0x4a4fdc
mov edi, eax
mov ebx, dword [ebp + 8]
sub edi, dword [ebx + 0x128]
mov dword [esp + 4], edi
mov ebx, ecx
mov edi, dword [ebp + 8]
sbb ebx, dword [edi + 0x12c]
mov edi, dword [esp + 4]
mov dword [esp + 0x18], edi
sub dword [esp + 0x18], esi
mov esi, ebx
sbb esi, edx
mov edx, dword [ebp + 8]
mov dword [edx + 0x120], edi
mov dword [edx + 0x124], ebx
mov edi, dword [esp + 0x18]
mov dword [edx + 0x108], edi
mov dword [edx + 0x10c], esi
mov esi, dword [esp + 4]
mov edx, ebx
jmp 0x4a4fdc