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

Disassembly:
sub esp, 0x3c
push ebx
mov ebx, dword [esp + 0x44]
mov eax, dword [ebx + 0x14]
mov eax, dword [eax + 0xc]
push ebp
push esi
test eax, eax
je 0x50af6e
push eax
call dword [0x633d0c]
add esp, 4
push edi
mov edi, dword [ebx + 0x18]
cmp byte [edi + 9], 0
je 0x50af86
inc dword [edi + 0xc]
cmp byte [edi + 0xa], 0
jne 0x50af86
call fcn.004b1f80
mov eax, dword [ebx]
test eax, eax
je 0x50af9d
mov eax, dword [eax + 0xc]
test eax, eax
je 0x50af9d
push eax
call dword [0x633d0c]
add esp, 4
mov ebp, dword [ebx + 0x1c]
test ebp, ebp
je 0x50afb2
cmp ebp, 5
je 0x50afb2
cmp ebp, 6
jne 0x50ba68
mov esi, dword [ebx + 0x18]
mov ecx, dword [esi + 4]
mov edx, dword [ecx]
mov eax, dword [ebx + 4]
mov ecx, dword [eax + 4]
xor ebp, ebp
mov dword [esp + 0x2c], edx
mov edx, dword [ecx]
mov dword [esp + 0x14], edx
mov dword [esp + 0x30], ebp
cmp dword [ebx], ebp
je 0x50afe7
mov eax, dword [esi + 4]
cmp byte [eax + 0x14], 2
jne 0x50afe7
mov ebp, 5
jmp 0x50b157
cmp byte [esi + 8], 0
jne 0x50b157
mov ebp, dword [esi + 4]
xor ebx, ebx
cmp byte [esi + 9], bl
je 0x50b00a
inc dword [esi + 0xc]
cmp byte [esi + 0xa], bl
jne 0x50b00a
mov edi, esi
call fcn.004b1f80
mov al, byte [esi + 8]
cmp al, 2
je 0x50b138
cmp al, 1
je 0x50b138
mov ecx, dword [esi]
test dword [ecx + 0x1c], 0x2000000
je 0x50b039
mov edx, dword [ebp]
cmp byte [edx + 0xe], bl
jne 0x50b039
mov eax, 0xfffe
and word [ebp + 0x16], ax
movzx ecx, word [ebp + 0x16]
test cl, cl
jns 0x50b052
mov edx, dword [ebp + 0x4c]
cmp dword [edx], ebx
je 0x50b052
mov ebx, 0x106
jmp 0x50b138
mov eax, dword [esi + 4]
cmp byte [esi + 9], bl
je 0x50b08d
cmp dword [eax + 0x4c], esi
je 0x50b06f
test byte [eax + 0x16], 0x40
je 0x50b06f
mov ebx, 0x106
jmp 0x50b138
mov eax, dword [eax + 0x48]
test eax, eax
je 0x50b08d
cmp dword [eax], esi
je 0x50b086
cmp dword [eax + 4], 1
jne 0x50b086
cmp byte [eax + 8], 1
jne 0x50b048
mov eax, dword [eax + 0xc]
test eax, eax
jne 0x50b076
mov eax, ecx
xor ebx, ebx
and eax, 0xffef
mov word [ebp + 0x16], ax
cmp dword [ebp + 0x2c], ebx
jne 0x50b0a6
or eax, 0x10
mov word [ebp + 0x16], ax
cmp dword [ebp + 0xc], 0
jne 0x50b0bb
mov eax, ebp
call fcn.00504eb0
mov ebx, eax
test ebx, ebx
je 0x50b0a6
jmp 0x50b0bf
test ebx, ebx
je 0x50b0f1
cmp byte [ebp + 0x14], 0
jne 0x50b0f1
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x50b0f1
mov dword [ebp + 0xc], 0
mov eax, dword [eax + 0x48]
mov edi, dword [eax + 0x14]
call fcn.004af220
mov eax, dword [edi + 0xd4]
cmp dword [eax + 0xc], 0
jne 0x50b0f1
mov eax, edi
call fcn.004c40a0
cmp bl, 5
jne 0x50b109
cmp byte [ebp + 0x14], 0
jne 0x50b109
push ebp
call fcn.004bf580
add esp, 4
test eax, eax
jne 0x50b0a6
test ebx, ebx
jne 0x50b138
cmp byte [esi + 8], bl
jne 0x50b12a
inc dword [ebp + 0x28]
cmp byte [esi + 9], bl
je 0x50b12a
mov byte [esi + 0x28], 1
mov ecx, dword [ebp + 0x48]
lea edx, [esi + 0x20]
mov dword [esi + 0x2c], ecx
mov dword [ebp + 0x48], edx
mov byte [esi + 8], 1
cmp byte [ebp + 0x14], 1
jae 0x50b138
mov byte [ebp + 0x14], 1
cmp byte [esi + 9], 0
je 0x50b149
add dword [esi + 0xc], 0xffffffff
jne 0x50b149
call fcn.004b1f60
mov ebp, ebx
mov ebx, dword [esp + 0x50]
mov dword [esp + 0x30], 1
cmp dword [ebx + 0xc], 0
jne 0x50b182
test ebp, ebp
jne 0x50b1ab
mov eax, dword [ebx + 0x18]
mov ecx, dword [eax + 4]
mov eax, dword [ecx + 0x20]
push ebp
push 0xffffffffffffffff
push eax
mov eax, dword [ebx + 4]
call fcn.004ffbf0
add esp, 0xc
cmp eax, 7
jne 0x50b186
mov ebp, eax
jmp 0x50b1ab
test ebp, ebp
jne 0x50b1ab
cmp dword [ebx + 0xc], 0
jne 0x50b1ab
mov eax, dword [ebx + 4]
lea edx, [ebx + 8]
push edx
push 2
push eax
call fcn.00505170
mov ebp, eax
add esp, 0xc
test ebp, ebp
jne 0x50b1ab
mov dword [ebx + 0xc], 1
mov eax, dword [ebx + 4]
mov eax, dword [eax + 4]
mov esi, dword [eax + 0x20]
mov ecx, dword [ebx + 0x18]
mov eax, dword [eax]
mov ecx, dword [ecx + 4]
movzx eax, byte [eax + 5]
mov edx, dword [ecx + 0x20]
mov dword [esp + 0x1c], edx
mov dword [esp + 0x18], esi
mov dword [esp + 0x34], eax
test ebp, ebp
jne 0x50b1df
cmp eax, 5
jne 0x50b1df
cmp edx, esi
je 0x50b1df
lea ebp, [eax + 3]
mov ecx, dword [ecx + 0x2c]
mov edi, dword [esp + 0x54]
mov dword [esp + 0x10], ecx
mov dword [esp + 0x20], 0
test edi, edi
jl 0x50b1fc
cmp dword [esp + 0x20], edi
jge 0x50b272
mov esi, dword [ebx + 0x10]
mov ecx, dword [esp + 0x10]
cmp esi, ecx
ja 0x50b276
test ebp, ebp
jne 0x50b2b4
mov edx, dword [ebx + 0x18]
mov ecx, dword [edx + 4]
mov eax, dword [0x633dc8]
xor edx, edx
div dword [ecx + 0x20]
inc eax
cmp esi, eax
je 0x50b264
mov eax, dword [esp + 0x2c]
push 2
lea edx, [esp + 0x28]
push edx
push esi
push eax
mov eax, dword [eax + 0xcc]
call eax
mov ebp, eax
add esp, 0x10
test ebp, ebp
jne 0x50b264
mov ecx, dword [esp + 0x24]
mov eax, dword [ecx + 4]
push ebp
push eax
push esi
push ebx
call fcn.004c5010
mov ebp, eax
mov eax, dword [esp + 0x34]
add esp, 0x10
test eax, eax
je 0x50b264
call fcn.004b0fd0
mov eax, 1
add dword [ebx + 0x10], eax
add dword [esp + 0x20], eax
jmp 0x50b1f2
mov ecx, dword [esp + 0x10]
test ebp, ebp
jne 0x50b2b4
mov eax, dword [ebx + 0x10]
mov edx, ecx
sub edx, eax
inc edx
mov dword [ebx + 0x24], ecx
mov dword [ebx + 0x20], edx
cmp eax, ecx
ja 0x50b2c1
cmp dword [ebx + 0x28], ebp
jne 0x50b87d
mov eax, dword [ebx + 0x18]
mov ecx, dword [eax + 4]
mov eax, dword [ecx]
mov edx, dword [eax + 0x58]
add eax, 0x58
mov dword [ebx + 0x2c], edx
mov dword [eax], ebx
mov dword [ebx + 0x28], 1
jmp 0x50b87d
cmp ebp, 0x65
jne 0x50b87d
mov ecx, dword [esp + 0x10]
test ecx, ecx
jne 0x50b31a
mov esi, dword [ebx + 4]
cmp byte [esi + 9], cl
je 0x50b2dc
inc dword [esi + 0xc]
cmp byte [esi + 0xa], cl
jne 0x50b2dc
mov edi, esi
call fcn.004b1f80
mov eax, dword [esi + 4]
mov dword [eax + 0x2c], 0
mov ecx, dword [esi + 4]
push ecx
call fcn.004e5f80
add esp, 4
cmp byte [esi + 9], 0
mov ebp, eax
je 0x50b305
add dword [esi + 0xc], 0xffffffff
jne 0x50b305
call fcn.004b1f60
mov dword [esp + 0x10], 1
test ebp, ebp
je 0x50b31a
cmp ebp, 0x65
jne 0x50b3cf
mov edi, dword [ebx + 8]
mov esi, dword [ebx + 4]
mov ebp, dword [esi + 4]
inc edi
cmp byte [esi + 9], 0
mov dword [esp + 0x24], edi
je 0x50b342
inc dword [esi + 0xc]
cmp byte [esi + 0xa], 0
jne 0x50b342
mov edi, esi
call fcn.004b1f80
mov edi, dword [esp + 0x24]
mov eax, dword [ebp + 0xc]
mov ebp, dword [eax + 0x48]
test byte [ebp + 0x1c], 4
mov edx, dword [eax + 0x38]
mov eax, dword [ebp + 0x14]
mov dword [esp + 0x24], edx
je 0x50b384
mov ecx, dword [eax + 0x18]
cmp ecx, dword [ebp + 0x18]
jb 0x50b384
cmp dword [eax + 0x60], 0
je 0x50b380
mov ecx, ebp
call fcn.004b0250
test eax, eax
je 0x50b37c
push ebp
call fcn.004c4100
add esp, 4
jmp 0x50b3af
xor eax, eax
jmp 0x50b3af
xor ebp, ebp
jmp 0x50b3b5
mov ecx, dword [eax + 0x28]
test ecx, ecx
je 0x50b38f
mov ebp, ecx
jmp 0x50b3b1
mov edx, dword [eax + 0x94]
cmp edx, dword [eax + 0x98]
jbe 0x50b3a8
push ebp
call fcn.004c43f0
add esp, 4
jmp 0x50b3af
mov eax, ebp
call fcn.004c4330
mov ebp, eax
test ebp, ebp
jne 0x50b3be
mov eax, dword [esp + 0x24]
bswap edi
mov dword [eax + 0x28], edi
cmp byte [esi + 9], 0
je 0x50b3cf
add dword [esi + 0xc], 0xffffffff
jne 0x50b3cf
call fcn.004b1f60
test ebp, ebp
jne 0x50b87d
mov eax, dword [ebx]
test eax, eax
je 0x50b3e2
call fcn.004d7e50
cmp dword [esp + 0x34], 5
jne 0x50b400
mov eax, dword [ebx + 4]
push 2
call fcn.005054f0
mov ebp, eax
add esp, 4
test ebp, ebp
jne 0x50b87d
mov edi, dword [esp + 0x1c]
mov ecx, dword [esp + 0x18]
cmp edi, ecx
jge 0x50b43c
mov eax, ecx
cdq
idiv edi
mov edx, dword [esp + 0x10]
mov ecx, eax
lea eax, [ecx + edx - 1]
cdq
idiv ecx
xor edx, edx
mov esi, eax
mov eax, dword [ebx + 4]
mov ecx, dword [eax + 4]
mov eax, dword [0x633dc8]
div dword [ecx + 0x20]
mov ecx, dword [esp + 0x18]
inc eax
cmp esi, eax
jne 0x50b448
dec esi
jmp 0x50b448
mov eax, edi
cdq
idiv ecx
mov esi, eax
imul esi, dword [esp + 0x10]
cmp edi, ecx
jge 0x50b6cd
mov eax, dword [esp + 0x1c]
cdq
mov ecx, eax
mov eax, dword [esp + 0x10]
mov edi, edx
push edi
cdq
push ecx
push edx
push eax
mov dword [esp + 0x54], ecx
mov dword [esp + 0x58], edi
call fcn.00588bf0
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0x14]
mov dword [esp + 0x40], edx
mov edx, dword [eax + 0x3c]
mov eax, dword [eax + 0x18]
mov dword [esp + 0x10], edx
mov dword [esp + 0x34], eax
mov edi, esi
jmp 0x50b490
cmp edi, dword [esp + 0x34]
ja 0x50b4e8
mov ecx, dword [ebx + 4]
mov ecx, dword [ecx + 4]
mov eax, dword [0x633dc8]
xor edx, edx
div dword [ecx + 0x20]
inc eax
cmp edi, eax
je 0x50b4e1
mov eax, dword [esp + 0x14]
push 0
lea edx, [esp + 0x28]
push edx
push edi
push eax
mov eax, dword [eax + 0xcc]
call eax
mov ebp, eax
add esp, 0x10
test ebp, ebp
jne 0x50b4e1
mov esi, dword [esp + 0x24]
call fcn.004c4610
mov ebp, eax
mov eax, dword [esp + 0x24]
test eax, eax
je 0x50b4e1
call fcn.004b0fd0
inc edi
test ebp, ebp
je 0x50b490
jmp 0x50b4fd
test ebp, ebp
jne 0x50b4fd
mov eax, dword [esp + 0x14]
push 1
push ebp
call fcn.004f89f0
add esp, 8
mov ebp, eax
mov ecx, dword [esp + 0x18]
mov edx, dword [0x633dc8]
lea eax, [edx + ecx]
mov ecx, dword [esp + 0x40]
cdq
cmp edx, ecx
jg 0x50b521
jl 0x50b51b
cmp eax, dword [esp + 0x3c]
jae 0x50b521
mov dword [esp + 0x38], edx
jmp 0x50b529
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x38], ecx
mov edx, dword [esp + 0x1c]
mov ecx, dword [0x633dc8]
mov dword [esp + 0x34], eax
lea eax, [ecx + edx]
cdq
mov esi, edx
mov edi, eax
mov dword [esp + 0x28], esi
test ebp, ebp
jne 0x50b87d
jmp 0x50b550
cmp esi, dword [esp + 0x38]
jg 0x50b634
jl 0x50b566
cmp edi, dword [esp + 0x34]
jae 0x50b634
mov ecx, dword [esp + 0x48]
mov edx, dword [esp + 0x44]
push 0
lea eax, [esp + 0x24]
push eax
push ecx
push edx
push esi
push edi
mov dword [esp + 0x38], 0
call fcn.005895f0
inc eax
push eax
mov eax, dword [esp + 0x38]
push eax
mov eax, dword [eax + 0xcc]
call eax
mov ebp, eax
add esp, 0x10
test ebp, ebp
jne 0x50b5be
mov ecx, dword [esp + 0x20]
mov eax, dword [ecx + 4]
mov ecx, dword [esp + 0x10]
mov ebp, dword [esp + 0x1c]
mov edx, dword [ecx]
push esi
push edi
push ebp
push eax
mov eax, dword [edx + 0xc]
push ecx
call eax
add esp, 0x14
mov ebp, eax
mov eax, dword [esp + 0x20]
mov ecx, eax
test eax, eax
je 0x50b61b
test byte [eax + 0x1c], 0x20
je 0x50b616
mov eax, dword [eax + 0x14]
dec dword [eax + 0x78]
mov edx, dword [eax + 0x88]
mov dword [ecx + 0x10], edx
mov esi, dword [eax + 0x3c]
mov dword [eax + 0x88], ecx
mov edx, dword [ecx + 4]
mov eax, dword [eax + 0x98]
mov ecx, dword [ecx + 0x18]
mov ebx, dword [esi]
push edx
cdq
push edx
push eax
dec ecx
push 0
push ecx
call fcn.00588bf0
push edx
mov edx, dword [ebx + 0x48]
push eax
push esi
call edx
mov esi, dword [esp + 0x38]
mov ebx, dword [esp + 0x60]
add esp, 0x10
jmp 0x50b61b
call fcn.004af220
add edi, dword [esp + 0x44]
adc esi, dword [esp + 0x48]
mov dword [esp + 0x28], esi
test ebp, ebp
je 0x50b550
jmp 0x50b87d
test ebp, ebp
jne 0x50b87d
mov esi, dword [esp + 0x10]
mov eax, dword [esi]
mov edx, dword [eax + 0x18]
lea ecx, [esp + 0x44]
push ecx
push esi
call edx
add esp, 8
test eax, eax
jne 0x50b67d
mov edx, dword [esp + 0x48]
mov ecx, dword [esp + 0x40]
cmp edx, ecx
jl 0x50b67d
jg 0x50b66c
mov edx, dword [esp + 0x44]
cmp edx, dword [esp + 0x3c]
jbe 0x50b67d
mov eax, dword [esi]
mov edx, dword [eax + 0x10]
push ecx
mov ecx, dword [esp + 0x40]
push ecx
push esi
call edx
add esp, 0xc
mov ebp, eax
test eax, eax
jne 0x50b87d
mov esi, dword [esp + 0x14]
mov eax, dword [esi + 0x3c]
mov ecx, dword [eax]
test ecx, ecx
je 0x50b6a5
push ebp
push 0x15
push eax
mov eax, dword [ecx + 0x28]
call eax
add esp, 0xc
cmp eax, 0xc
jne 0x50b6a9
xor eax, eax
jmp 0x50b6ad
test eax, eax
jne 0x50b6e0
cmp byte [esi + 7], 0
jne 0x50b6e0
movzx eax, byte [esi + 0xa]
mov ecx, dword [esi + 0x3c]
test eax, eax
je 0x50b6c9
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 0x14]
push ecx
call eax
jmp 0x50b6dd
xor eax, eax
jmp 0x50b6e0
mov eax, dword [esp + 0x14]
push 0
push 0
mov dword [eax + 0x18], esi
call fcn.004f89f0
add esp, 8
mov ebp, eax
test ebp, ebp
jne 0x50b87d
mov esi, dword [ebx + 4]
cmp byte [esi + 8], al
je 0x50b878
cmp byte [esi + 9], al
je 0x50b70a
inc dword [esi + 0xc]
cmp byte [esi + 0xa], al
jne 0x50b70a
mov edi, esi
call fcn.004b1f80
cmp byte [esi + 8], 2
jne 0x50b860
mov edi, dword [esi + 4]
mov ebp, dword [edi]
mov eax, dword [ebp + 0x28]
mov dword [esp + 0x34], edi
test eax, eax
jne 0x50b82e
cmp byte [ebp + 0x10], 2
jne 0x50b7d6
cmp byte [ebp + 4], al
je 0x50b7d6
cmp byte [ebp + 5], 1
jne 0x50b7d6
mov byte [ebp + 0x10], 1
dec dword [esi + 0x14]
mov ebp, dword [edi + 0x3c]
mov byte [edi + 0x14], 1
test ebp, ebp
je 0x50b855
cmp dword [ebp + 8], 0
je 0x50b783
lea edi, [ebp + 0xc]
mov ebx, 0x7d
lea esp, [esp]
mov edx, dword [edi]
push edx
call fcn.004aef60
add esp, 4
add edi, 4
sub ebx, 1
jne 0x50b770
cmp dword [0x633cb0], 0
je 0x50b84b
mov eax, dword [0x641778]
test eax, eax
je 0x50b7a3
push eax
call dword [0x633d0c]
add esp, 4
push ebp
call dword [0x633ce8]
sub dword [0x641718], eax
dec dword [0x64173c]
push ebp
call dword [0x633ce0]
mov eax, dword [0x641778]
add esp, 8
test eax, eax
je 0x50b855
push eax
call dword [0x633d14]
jmp 0x50b852
movzx ecx, byte [ebp + 0x13]
inc dword [ebp + 0x64]
push 1
push ecx
push ebp
call fcn.004bd810
mov ecx, eax
and ecx, 0xff
add esp, 0xc
cmp ecx, 0xd
je 0x50b7fb
cmp ecx, 0xa
jne 0x50b82e
mov dword [ebp + 0x28], eax
mov byte [ebp + 0x10], 6
test eax, eax
je 0x50b812
mov dword [ebp + 0xcc], 0x4b0f40
jmp 0x50b82e
cmp byte [ebp + 0x16], 0
je 0x50b824
mov dword [ebp + 0xcc], 0x4f8850
jmp 0x50b82e
mov dword [ebp + 0xcc], fcn.004f8670
mov ebp, eax
test ebp, ebp
je 0x50b749
cmp byte [esi + 9], 0
je 0x50b87d
add dword [esi + 0xc], 0xffffffff
jne 0x50b87d
call fcn.004b1f60
jmp 0x50b87d
push ebp
call dword [0x633ce0]
add esp, 4
mov eax, dword [esp + 0x34]
mov dword [eax + 0x3c], 0
mov edi, esi
call fcn.004c4c20
cmp byte [esi + 9], 0
je 0x50b878
add dword [esi + 0xc], 0xffffffff
jne 0x50b878
call fcn.004b1f60
mov ebp, 0x65
cmp dword [esp + 0x30], 0
je 0x50ba52
mov ecx, dword [esp + 0x50]
mov esi, dword [ecx + 0x18]
cmp byte [esi + 8], 2
jne 0x50b8ec
cmp byte [esi + 9], 0
mov ebx, dword [esi + 4]
je 0x50b8ae
inc dword [esi + 0xc]
cmp byte [esi + 0xa], 0
jne 0x50b8ae
mov edi, esi
call fcn.004b1f80
cmp byte [ebx + 0x11], 0
je 0x50b8bf
mov edi, ebx
call fcn.0050aba0
test eax, eax
jne 0x50b8db
cmp byte [ebx + 0x13], 0
je 0x50b8cd
mov edx, dword [ebx]
mov eax, dword [ebx + 0x2c]
mov dword [edx + 0x18], eax
mov eax, dword [ebx]
push 0
push 0
call fcn.004f89f0
add esp, 8
cmp byte [esi + 9], 0
je 0x50b8ec
add dword [esi + 0xc], 0xffffffff
jne 0x50b8ec
call fcn.004b1f60
mov ecx, dword [esp + 0x50]
mov edi, dword [ecx + 0x18]
cmp byte [edi + 8], 0
je 0x50ba52
cmp byte [edi + 9], 0
je 0x50b911
inc dword [edi + 0xc]
cmp byte [edi + 0xa], 0
jne 0x50b911
call fcn.004b1f80
cmp byte [edi + 8], 2
jne 0x50ba3a
mov ebx, dword [edi + 4]
mov esi, dword [ebx]
mov eax, dword [esi + 0x28]
mov dword [esp + 0x34], ebx
test eax, eax
jne 0x50ba3f
cmp byte [esi + 0x10], 2
jne 0x50b946
cmp byte [esi + 4], al
je 0x50b946
cmp byte [esi + 5], 1
jne 0x50b946
mov byte [esi + 0x10], 1
jmp 0x50b9a6
movzx edx, byte [esi + 0x13]
inc dword [esi + 0x64]
push 1
push edx
push esi
call fcn.004bd810
mov ecx, eax
and ecx, 0xff
add esp, 0xc
cmp ecx, 0xd
je 0x50b96b
cmp ecx, 0xa
jne 0x50b99e
mov dword [esi + 0x28], eax
mov byte [esi + 0x10], 6
test eax, eax
je 0x50b982
mov dword [esi + 0xcc], 0x4b0f40
jmp 0x50b99e
cmp byte [esi + 0x16], 0
je 0x50b994
mov dword [esi + 0xcc], 0x4f8850
jmp 0x50b99e
mov dword [esi + 0xcc], fcn.004f8670
test eax, eax
jne 0x50ba3f
dec dword [edi + 0x14]
mov esi, dword [ebx + 0x3c]
mov byte [ebx + 0x14], 1
test esi, esi
je 0x50ba2f
cmp dword [esi + 8], 0
je 0x50b9da
lea ebx, [esi + 0xc]
mov dword [esp + 0x30], 0x7d
mov eax, dword [ebx]
push eax
call fcn.004aef60
add esp, 4
add ebx, 4
sub dword [esp + 0x30], 1
jne 0x50b9c5
cmp dword [0x633cb0], 0
je 0x50ba25
mov eax, dword [0x641778]
test eax, eax
je 0x50b9f6
push eax
call dword [0x633d0c]
add esp, 4
push esi
call dword [0x633ce8]
sub dword [0x641718], eax
dec dword [0x64173c]
push esi
call dword [0x633ce0]
mov eax, dword [0x641778]
add esp, 8
test eax, eax
je 0x50ba2f
push eax
call dword [0x633d14]
jmp 0x50ba2c
push esi
call dword [0x633ce0]
add esp, 4
mov ecx, dword [esp + 0x34]
mov dword [ecx + 0x3c], 0
call fcn.004c4c20
cmp byte [edi + 9], 0
je 0x50ba52
add dword [edi + 0xc], 0xffffffff
jne 0x50ba52
mov esi, edi
call fcn.004b1f60
cmp ebp, 0xc0a
jne 0x50ba5f
mov ebp, 7
mov edx, dword [esp + 0x50]
mov dword [edx + 0x1c], ebp
mov ebx, edx
mov eax, dword [ebx]
pop edi
test eax, eax
je 0x50ba80
mov eax, dword [eax + 0xc]
test eax, eax
je 0x50ba80
push eax
call dword [0x633d14]
add esp, 4
mov esi, dword [ebx + 0x18]
cmp byte [esi + 9], 0
je 0x50ba94
add dword [esi + 0xc], 0xffffffff
jne 0x50ba94
call fcn.004b1f60
mov eax, dword [ebx + 0x14]
mov eax, dword [eax + 0xc]
test eax, eax
je 0x50baa8
push eax
call dword [0x633d14]
add esp, 4
pop esi
mov eax, ebp
pop ebp
pop ebx
add esp, 0x3c
ret