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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x3c
push ebx
push esi
mov esi, dword [ebp + 8]
mov eax, dword [esi + 0x14]
mov eax, dword [eax + 0xc]
push edi
test eax, eax
je 0x4c98e3
push eax
call dword [0x631984]
add esp, 4
mov edi, dword [esi + 0x18]
cmp byte [edi + 9], 0
je 0x4c98fa
inc dword [edi + 0xc]
cmp byte [edi + 0xa], 0
jne 0x4c98fa
call fcn.004be580
mov eax, dword [esi]
test eax, eax
je 0x4c9911
mov eax, dword [eax + 0xc]
test eax, eax
je 0x4c9911
push eax
call dword [0x631984]
add esp, 4
mov ebx, dword [esi + 0x1c]
xor eax, eax
cmp ebx, eax
je 0x4c9928
cmp ebx, 5
je 0x4c9928
cmp ebx, 6
jne 0x4ca373
mov edi, dword [esi + 0x18]
mov ecx, dword [edi + 4]
mov edx, dword [ecx]
mov ecx, dword [esi + 4]
mov dword [esp + 0x28], edx
mov edx, dword [ecx + 4]
mov ecx, dword [edx]
mov dword [esp + 0x14], ecx
mov dword [esp + 0x2c], eax
cmp dword [esi], eax
je 0x4c995b
mov edx, dword [edi + 4]
cmp byte [edx + 0x14], 2
jne 0x4c995b
mov ebx, 5
jmp 0x4c9af5
xor ebx, ebx
cmp byte [edi + 8], bl
jne 0x4c9af5
cmp byte [edi + 9], 0
mov ebx, dword [edi + 4]
mov dword [esp + 0xc], eax
je 0x4c9981
inc dword [edi + 0xc]
cmp byte [edi + 0xa], 0
jne 0x4c9981
call fcn.004be580
mov al, byte [edi + 8]
cmp al, 2
je 0x4c9ad3
cmp al, 1
je 0x4c9ad3
mov eax, dword [edi]
test dword [eax + 0x1c], 0x2000000
je 0x4c99b0
mov ecx, dword [ebx]
cmp byte [ecx + 0xe], 0
jne 0x4c99b0
mov edx, 0xfffe
and word [ebx + 0x16], dx
movzx edx, word [ebx + 0x16]
test dl, dl
jns 0x4c99cd
mov eax, dword [ebx + 0x4c]
cmp dword [eax], 0
je 0x4c99cd
mov dword [esp + 0xc], 0x106
jmp 0x4c9ad3
cmp byte [edi + 9], 0
mov eax, dword [edi + 4]
je 0x4c9a15
cmp dword [eax + 0x4c], edi
je 0x4c99ee
test byte [eax + 0x16], 0x40
je 0x4c99ee
mov dword [esp + 0xc], 0x106
jmp 0x4c9ad3
mov eax, dword [eax + 0x48]
test eax, eax
je 0x4c9a15
mov ecx, 1
lea ebx, [ebx]
cmp dword [eax], edi
je 0x4c9a0e
cmp dword [eax + 4], ecx
jne 0x4c9a0e
cmp byte [eax + 8], cl
jne 0x4c99c0
mov eax, dword [eax + 0xc]
test eax, eax
jne 0x4c9a00
mov eax, edx
and eax, 0xffef
cmp dword [ebx + 0x2c], 0
mov dword [esp + 0xc], 0
mov word [ebx + 0x16], ax
jne 0x4c9a35
or eax, 0x10
mov word [ebx + 0x16], ax
cmp dword [ebx + 0xc], 0
jne 0x4c9a4c
mov eax, ebx
call fcn.004c1200
mov dword [esp + 0xc], eax
test eax, eax
je 0x4c9a35
jmp 0x4c9a53
cmp dword [esp + 0xc], 0
je 0x4c9a85
cmp byte [ebx + 0x14], 0
jne 0x4c9a85
mov eax, dword [ebx + 0xc]
test eax, eax
je 0x4c9a85
mov dword [ebx + 0xc], 0
mov eax, dword [eax + 0x48]
mov esi, dword [eax + 0x14]
call fcn.004b4a10
mov ecx, dword [esi + 0xd4]
cmp dword [ecx + 0xc], 0
jne 0x4c9a85
mov eax, esi
call fcn.004b72a0
cmp byte [esp + 0xc], 5
jne 0x4c9a9f
cmp byte [ebx + 0x14], 0
jne 0x4c9a9f
push ebx
call fcn.004c04a0
add esp, 4
test eax, eax
jne 0x4c9a35
cmp dword [esp + 0xc], 0
jne 0x4c9ad3
cmp byte [edi + 8], 0
jne 0x4c9ac5
inc dword [ebx + 0x28]
cmp byte [edi + 9], 0
je 0x4c9ac5
mov byte [edi + 0x28], 1
mov edx, dword [ebx + 0x48]
lea eax, [edi + 0x20]
mov dword [edi + 0x2c], edx
mov dword [ebx + 0x48], eax
mov byte [edi + 8], 1
cmp byte [ebx + 0x14], 1
jae 0x4c9ad3
mov byte [ebx + 0x14], 1
cmp byte [edi + 9], 0
je 0x4c9ae6
add dword [edi + 0xc], 0xffffffff
jne 0x4c9ae6
mov esi, edi
call fcn.004be540
mov ebx, dword [esp + 0xc]
mov esi, dword [ebp + 8]
mov dword [esp + 0x2c], 1
cmp dword [esi + 0xc], 0
jne 0x4c9b1f
test ebx, ebx
jne 0x4c9b48
mov ecx, dword [esi + 0x18]
mov edx, dword [ecx + 4]
mov eax, dword [edx + 0x20]
mov ecx, dword [esi + 4]
push ebx
push 0xffffffffffffffff
call fcn.004c0f50
add esp, 8
cmp eax, 7
jne 0x4c9b23
mov ebx, eax
jmp 0x4c9b48
test ebx, ebx
jne 0x4c9b48
cmp dword [esi + 0xc], 0
jne 0x4c9b48
mov ecx, dword [esi + 4]
lea eax, [esi + 8]
push eax
push 2
push ecx
call fcn.004c1610
mov ebx, eax
add esp, 0xc
test ebx, ebx
jne 0x4c9b48
mov dword [esi + 0xc], 1
mov eax, dword [esi + 4]
mov eax, dword [eax + 4]
mov edi, dword [eax + 0x20]
mov edx, dword [esi + 0x18]
mov eax, dword [eax]
mov ecx, dword [edx + 4]
movzx eax, byte [eax + 5]
mov edx, dword [ecx + 0x20]
mov dword [esp + 0x1c], edx
mov dword [esp + 0x10], edi
mov dword [esp + 0x30], eax
test ebx, ebx
jne 0x4c9b7c
cmp eax, 5
jne 0x4c9b7c
cmp edx, edi
je 0x4c9b7c
lea ebx, [eax + 3]
mov ecx, dword [ecx + 0x2c]
mov dword [esp + 0xc], ecx
mov dword [esp + 0x18], 0
mov eax, dword [ebp + 0xc]
test eax, eax
jl 0x4c9b9c
cmp dword [esp + 0x18], eax
jge 0x4c9c35
mov edi, dword [esi + 0x10]
cmp edi, dword [esp + 0xc]
ja 0x4c9c35
test ebx, ebx
jne 0x4c9c7a
mov edx, dword [esi + 0x18]
mov ecx, dword [edx + 4]
mov eax, dword [0x631a40]
xor edx, edx
div dword [ecx + 0x20]
inc eax
cmp edi, eax
je 0x4c9c24
mov eax, dword [esp + 0x28]
push 2
lea edx, [esp + 0x24]
push edx
push edi
push eax
mov eax, dword [eax + 0xcc]
call eax
mov ebx, eax
add esp, 0x10
test ebx, ebx
jne 0x4c9c24
mov ecx, dword [esp + 0x20]
mov eax, dword [ecx + 4]
push ebx
push eax
push edi
push esi
call fcn.004c9690
mov ebx, eax
mov eax, dword [esp + 0x30]
add esp, 0x10
test eax, eax
je 0x4c9c24
test byte [eax + 0x1c], 0x20
je 0x4c9c1f
mov ecx, eax
call fcn.004b8a90
mov eax, 1
add dword [esi + 0x10], eax
add dword [esp + 0x18], eax
jmp 0x4c9b8b
call fcn.004b4a10
mov eax, 1
add dword [esi + 0x10], eax
add dword [esp + 0x18], eax
jmp 0x4c9b8b
test ebx, ebx
jne 0x4c9c7a
mov eax, dword [esp + 0xc]
mov ecx, dword [esi + 0x10]
mov edx, eax
sub edx, ecx
inc edx
mov dword [esi + 0x24], eax
mov dword [esi + 0x20], edx
cmp ecx, eax
ja 0x4c9c8a
cmp dword [esi + 0x28], ebx
jne 0x4ca139
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + 0x18]
mov edx, dword [eax + 4]
mov eax, dword [edx]
mov edx, dword [eax + 0x58]
add eax, 0x58
mov dword [ecx + 0x2c], edx
mov dword [eax], ecx
mov dword [ecx + 0x28], 1
jmp 0x4ca139
cmp ebx, 0x65
jne 0x4ca139
mov esi, dword [ebp + 8]
mov eax, dword [esp + 0xc]
test eax, eax
jne 0x4c9ce2
mov edi, dword [esi + 4]
cmp byte [edi + 9], al
je 0x4c9ca3
inc dword [edi + 0xc]
cmp byte [edi + 0xa], al
jne 0x4c9ca3
call fcn.004be580
mov eax, dword [edi + 4]
mov dword [eax + 0x2c], 0
mov ecx, dword [edi + 4]
push ecx
call fcn.004c1500
add esp, 4
cmp byte [edi + 9], 0
mov ebx, eax
je 0x4c9cd1
add dword [edi + 0xc], 0xffffffff
jne 0x4c9cd1
mov esi, edi
call fcn.004be540
mov esi, dword [ebp + 8]
mov dword [esp + 0xc], 1
test ebx, ebx
je 0x4c9ce2
cmp ebx, 0x65
jne 0x4c9d3c
mov ebx, dword [esi + 8]
mov edi, dword [esi + 4]
mov esi, dword [edi + 4]
inc ebx
cmp byte [edi + 9], 0
je 0x4c9d00
inc dword [edi + 0xc]
cmp byte [edi + 0xa], 0
jne 0x4c9d00
call fcn.004be580
mov eax, dword [esi + 0xc]
mov edx, dword [eax + 0x38]
mov esi, dword [eax + 0x48]
mov dword [esp + 0x20], edx
call fcn.004ba810
mov dword [esp + 0x18], eax
test eax, eax
jne 0x4c9d23
mov ecx, dword [esp + 0x20]
bswap ebx
mov dword [ecx + 0x28], ebx
cmp byte [edi + 9], 0
je 0x4c9d3a
add dword [edi + 0xc], 0xffffffff
jne 0x4c9d3a
mov esi, edi
call fcn.004be540
mov eax, dword [esp + 0x18]
mov ebx, eax
test ebx, ebx
jne 0x4ca139
mov esi, dword [ebp + 8]
mov eax, dword [esi]
test eax, eax
je 0x4c9d52
call fcn.004ebfc0
cmp dword [esp + 0x30], 5
jne 0x4c9d70
mov eax, dword [esi + 4]
push 2
call fcn.004c9160
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x4ca139
mov ecx, dword [esp + 0x1c]
cmp ecx, dword [esp + 0x10]
jge 0x4c9dab
mov eax, dword [esp + 0x10]
cdq
idiv ecx
mov edx, dword [esp + 0xc]
mov esi, eax
lea eax, [esi + edx - 1]
cdq
idiv esi
mov edi, eax
mov eax, dword [ebp + 8]
mov edx, dword [eax + 4]
mov esi, dword [edx + 4]
mov eax, dword [0x631a40]
xor edx, edx
div dword [esi + 0x20]
inc eax
cmp edi, eax
jne 0x4c9db9
dec edi
jmp 0x4c9db9
mov eax, ecx
cdq
idiv dword [esp + 0x10]
mov edi, eax
imul edi, dword [esp + 0xc]
cmp ecx, dword [esp + 0x10]
jge 0x4ca051
mov eax, ecx
cdq
mov ecx, eax
mov eax, dword [esp + 0xc]
mov esi, edx
push esi
cdq
push ecx
push edx
push eax
mov dword [esp + 0x50], ecx
mov dword [esp + 0x54], esi
call fcn.0058da40
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x38], eax
mov eax, dword [ecx + 0x3c]
mov dword [esp + 0x3c], edx
mov edx, dword [ecx + 0x18]
mov dword [esp + 0xc], eax
mov dword [esp + 0x30], edx
jmp 0x4c9e04
mov ecx, dword [esp + 0x14]
cmp edi, dword [esp + 0x30]
ja 0x4c9e6a
mov eax, dword [ebp + 8]
mov edx, dword [eax + 4]
mov esi, dword [edx + 4]
mov eax, dword [0x631a40]
xor edx, edx
div dword [esi + 0x20]
inc eax
cmp edi, eax
je 0x4c9e63
push 0
lea eax, [esp + 0x24]
push eax
push edi
push ecx
mov ecx, dword [ecx + 0xcc]
call ecx
mov ebx, eax
add esp, 0x10
test ebx, ebx
jne 0x4c9e63
mov esi, dword [esp + 0x20]
call fcn.004ba810
mov ebx, eax
mov eax, dword [esp + 0x20]
test eax, eax
je 0x4c9e63
test byte [eax + 0x1c], 0x20
je 0x4c9e5e
mov ecx, eax
call fcn.004b8a90
jmp 0x4c9e63
call fcn.004b4a10
inc edi
test ebx, ebx
je 0x4c9e00
jmp 0x4c9e7d
test ebx, ebx
jne 0x4c9e7d
push 1
push ebx
mov eax, ecx
call fcn.004ba9a0
add esp, 8
mov ebx, eax
mov edx, dword [esp + 0x10]
mov ecx, dword [0x631a40]
mov esi, dword [esp + 0x3c]
lea eax, [ecx + edx]
cdq
cmp edx, esi
jg 0x4c9ea1
jl 0x4c9e9b
cmp eax, dword [esp + 0x38]
jae 0x4c9ea1
mov dword [esp + 0x34], edx
jmp 0x4c9ea9
mov eax, dword [esp + 0x38]
mov dword [esp + 0x34], esi
mov edx, dword [esp + 0x1c]
mov dword [esp + 0x30], eax
lea eax, [ecx + edx]
cdq
mov edi, eax
mov esi, edx
mov dword [esp + 0x20], edi
mov dword [esp + 0x24], esi
test ebx, ebx
jne 0x4ca139
lea esp, [esp]
cmp esi, dword [esp + 0x34]
jg 0x4c9fb8
jl 0x4c9ee6
cmp edi, dword [esp + 0x30]
jae 0x4c9fb8
mov ecx, dword [esp + 0x44]
mov edx, dword [esp + 0x40]
push 0
lea eax, [esp + 0x1c]
push eax
push ecx
push edx
push esi
push edi
mov dword [esp + 0x30], 0
call fcn.0058da80
inc eax
push eax
mov eax, dword [esp + 0x34]
push eax
mov eax, dword [eax + 0xcc]
call eax
mov ebx, eax
add esp, 0x10
test ebx, ebx
jne 0x4c9f3e
mov ecx, dword [esp + 0x18]
mov eax, dword [ecx + 4]
mov ecx, dword [esp + 0xc]
mov ebx, dword [esp + 0x1c]
mov edx, dword [ecx]
push esi
push edi
push ebx
push eax
mov eax, dword [edx + 0xc]
push ecx
call eax
add esp, 0x14
mov ebx, eax
mov eax, dword [esp + 0x18]
mov ecx, eax
test eax, eax
je 0x4c9f9b
test byte [eax + 0x1c], 0x20
je 0x4c9f96
mov eax, dword [eax + 0x14]
dec dword [eax + 0x78]
mov edx, dword [eax + 0x88]
mov dword [ecx + 0x10], edx
mov edi, dword [eax + 0x3c]
mov dword [eax + 0x88], ecx
mov edx, dword [ecx + 4]
mov eax, dword [eax + 0x98]
mov ecx, dword [ecx + 0x18]
mov esi, dword [edi]
push edx
cdq
push edx
push eax
dec ecx
push 0
push ecx
call fcn.0058da40
push edx
mov edx, dword [esi + 0x48]
push eax
push edi
call edx
mov esi, dword [esp + 0x34]
mov edi, dword [esp + 0x30]
add esp, 0x10
jmp 0x4c9f9b
call fcn.004b4a10
add edi, dword [esp + 0x40]
adc esi, dword [esp + 0x44]
mov dword [esp + 0x20], edi
mov dword [esp + 0x24], esi
test ebx, ebx
je 0x4c9ed0
jmp 0x4ca139
test ebx, ebx
jne 0x4ca139
mov esi, dword [esp + 0xc]
mov eax, dword [esi]
mov edx, dword [eax + 0x18]
lea ecx, [esp + 0x40]
push ecx
push esi
call edx
add esp, 8
test eax, eax
jne 0x4ca001
mov edx, dword [esp + 0x44]
mov ecx, dword [esp + 0x3c]
cmp edx, ecx
jl 0x4ca001
jg 0x4c9ff0
mov edx, dword [esp + 0x40]
cmp edx, dword [esp + 0x38]
jbe 0x4ca001
mov eax, dword [esi]
mov edx, dword [eax + 0x10]
push ecx
mov ecx, dword [esp + 0x3c]
push ecx
push esi
call edx
add esp, 0xc
mov ebx, eax
test eax, eax
jne 0x4ca139
mov esi, dword [esp + 0x14]
mov eax, dword [esi + 0x3c]
mov ecx, dword [eax]
test ecx, ecx
je 0x4ca029
push ebx
push 0x15
push eax
mov eax, dword [ecx + 0x28]
call eax
add esp, 0xc
cmp eax, 0xc
jne 0x4ca02d
xor eax, eax
jmp 0x4ca031
test eax, eax
jne 0x4ca064
cmp byte [esi + 7], 0
jne 0x4ca064
movzx eax, byte [esi + 0xa]
mov ecx, dword [esi + 0x3c]
test eax, eax
je 0x4ca04d
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 0x14]
push ecx
call eax
jmp 0x4ca061
xor eax, eax
jmp 0x4ca064
mov eax, dword [esp + 0x14]
push 0
push 0
mov dword [eax + 0x18], edi
call fcn.004ba9a0
add esp, 8
mov ebx, eax
test ebx, ebx
jne 0x4ca139
mov ecx, dword [ebp + 8]
mov esi, dword [ecx + 4]
cmp byte [esi + 8], al
je 0x4ca134
cmp byte [esi + 9], al
je 0x4ca091
inc dword [esi + 0xc]
cmp byte [esi + 0xa], al
jne 0x4ca091
mov edi, esi
call fcn.004be580
cmp byte [esi + 8], 2
jne 0x4ca11c
mov eax, dword [esi + 4]
mov ebx, dword [eax]
mov dword [esp + 0x20], eax
mov eax, dword [ebx + 0x28]
test eax, eax
jne 0x4ca214
cmp byte [ebx + 0x10], 2
jne 0x4ca1bb
cmp byte [ebx + 4], al
je 0x4ca1bb
cmp byte [ebx + 5], 1
jne 0x4ca1bb
mov byte [ebx + 0x10], 1
dec dword [esi + 0x14]
mov eax, dword [esp + 0x20]
mov edi, dword [eax + 0x3c]
mov byte [eax + 0x14], 1
test edi, edi
je 0x4ca115
cmp dword [edi + 8], 0
je 0x4ca108
lea ebx, [edi + 0xc]
mov dword [esp + 0x28], 0x7d
mov eax, dword [ebx]
push eax
call fcn.004b43e0
add esp, 4
add ebx, 4
sub dword [esp + 0x28], 1
jne 0x4ca0f3
push edi
call fcn.004ab490
mov eax, dword [esp + 0x24]
add esp, 4
mov dword [eax + 0x3c], 0
mov eax, esi
call fcn.004c2240
cmp byte [esi + 9], 0
je 0x4ca134
add dword [esi + 0xc], 0xffffffff
jne 0x4ca134
call fcn.004be540
mov ebx, 0x65
cmp dword [esp + 0x2c], 0
je 0x4ca35e
mov esi, dword [ebp + 8]
mov eax, dword [esi + 0x18]
push 0
call fcn.004c21c0
mov esi, dword [esi + 0x18]
add esp, 4
cmp byte [esi + 8], 0
je 0x4ca35e
cmp byte [esi + 9], 0
je 0x4ca177
inc dword [esi + 0xc]
cmp byte [esi + 0xa], 0
jne 0x4ca177
mov edi, esi
call fcn.004be580
cmp byte [esi + 8], 2
jne 0x4ca346
mov ecx, dword [esi + 4]
mov edi, dword [ecx]
mov eax, dword [edi + 0x28]
mov dword [esp + 0x28], ecx
test eax, eax
jne 0x4ca34d
cmp byte [edi + 0x10], 2
jne 0x4ca23c
cmp byte [edi + 4], al
je 0x4ca23c
cmp byte [edi + 5], 1
jne 0x4ca23c
mov byte [edi + 0x10], 1
jmp 0x4ca2a1
movzx edx, byte [ebx + 0x13]
inc dword [ebx + 0x64]
push 1
push edx
mov eax, ebx
call fcn.004b7020
mov ecx, eax
and ecx, 0xff
add esp, 8
cmp ecx, 0xd
je 0x4ca1e1
cmp ecx, 0xa
jne 0x4ca214
mov dword [ebx + 0x28], eax
mov byte [ebx + 0x10], 6
test eax, eax
je 0x4ca1f8
mov dword [ebx + 0xcc], 0x4ba0d0
jmp 0x4ca214
cmp byte [ebx + 0x16], 0
je 0x4ca20a
mov dword [ebx + 0xcc], 0x4b9f20
jmp 0x4ca214
mov dword [ebx + 0xcc], fcn.004b9d10
mov ebx, eax
test ebx, ebx
je 0x4ca0d0
cmp byte [esi + 9], 0
je 0x4ca139
add dword [esi + 0xc], 0xffffffff
jne 0x4ca139
call fcn.004be540
jmp 0x4ca139
movzx ecx, byte [edi + 0x13]
inc dword [edi + 0x64]
push 1
push ecx
mov eax, edi
call fcn.004b7020
mov ecx, eax
and ecx, 0xff
add esp, 8
cmp ecx, 0xd
je 0x4ca262
cmp ecx, 0xa
jne 0x4ca295
mov dword [edi + 0x28], eax
mov byte [edi + 0x10], 6
test eax, eax
je 0x4ca279
mov dword [edi + 0xcc], 0x4ba0d0
jmp 0x4ca295
cmp byte [edi + 0x16], 0
je 0x4ca28b
mov dword [edi + 0xcc], 0x4b9f20
jmp 0x4ca295
mov dword [edi + 0xcc], fcn.004b9d10
mov ecx, dword [esp + 0x28]
test eax, eax
jne 0x4ca34d
dec dword [esi + 0x14]
mov edi, dword [ecx + 0x3c]
mov byte [ecx + 0x14], 1
test edi, edi
je 0x4ca33b
cmp dword [edi + 8], 0
je 0x4ca2e3
lea edx, [edi + 0xc]
mov dword [esp + 0x1c], edx
mov dword [esp + 0x2c], 0x7d
mov eax, dword [esp + 0x1c]
mov ecx, dword [eax]
push ecx
call fcn.004b43e0
add dword [esp + 0x20], 4
add esp, 4
sub dword [esp + 0x2c], 1
jne 0x4ca2c8
cmp dword [0x631928], 0
je 0x4ca331
mov eax, dword [0x640888]
test eax, eax
je 0x4ca2ff
push eax
call dword [0x631984]
add esp, 4
push edi
call dword [0x631960]
sub dword [0x640828], eax
dec dword [0x64084c]
add esp, 4
push edi
call dword [0x631958]
mov eax, dword [0x640888]
add esp, 4
test eax, eax
je 0x4ca33b
push eax
call dword [0x63198c]
jmp 0x4ca338
push edi
call dword [0x631958]
add esp, 4
mov edx, dword [esp + 0x28]
mov dword [edx + 0x3c], 0
mov eax, esi
call fcn.004c2240
cmp byte [esi + 9], 0
je 0x4ca35e
add dword [esi + 0xc], 0xffffffff
jne 0x4ca35e
call fcn.004be540
cmp ebx, 0xc0a
jne 0x4ca36b
mov ebx, 7
mov eax, dword [ebp + 8]
mov dword [eax + 0x1c], ebx
mov esi, eax
mov eax, dword [esi]
test eax, eax
je 0x4ca38a
mov eax, dword [eax + 0xc]
test eax, eax
je 0x4ca38a
push eax
call dword [0x63198c]
add esp, 4
mov eax, dword [esi + 0x18]
cmp byte [eax + 9], 0
je 0x4ca3a3
add dword [eax + 0xc], 0xffffffff
jne 0x4ca3a3
mov esi, eax
call fcn.004be540
mov esi, dword [ebp + 8]
mov ecx, dword [esi + 0x14]
mov eax, dword [ecx + 0xc]
test eax, eax
je 0x4ca3b7
push eax
call dword [0x63198c]
add esp, 4
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret