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

Disassembly:
sub esp, 0x4c
xor eax, eax
push ebx
mov ebx, dword [esp + 0x54]
mov ecx, dword [ebx]
push esi
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], eax
mov dword [esp + 0x50], eax
mov eax, dword [esp + 0x64]
push edi
mov edi, dword [ebx + 8]
mov dword [esp + 0x18], edi
mov byte [esp + 0xf], 0
mov dword [esp + 0x10], ecx
test eax, eax
je 0x50a229
cmp dword [eax], 0x40
jl 0x50a229
xor eax, eax
mov dword [esp + 0x68], eax
mov dword [esp + 0x48], eax
test byte [ecx + 0x44], 0x10
je 0x50a23b
and dword [esp + 0x70], 0xfeff
mov eax, dword [esp + 0x60]
mov edx, dword [eax]
cmp edx, 0x40
jle 0x50a260
push 0x40
push str.at_most__d_tables_in_a_join
mov esi, ebx
call fcn.004d3500
add esp, 8
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x4c
ret
mov eax, dword [esp + 0x70]
and eax, 0x20
mov dword [esp + 0x24], eax
mov dword [esp + 0x14], 1
jne 0x50a279
mov dword [esp + 0x14], edx
mov esi, dword [esp + 0x14]
lea esi, [esi + esi*4]
shl esi, 4
lea eax, [esi + 0x2f7]
and eax, 0xfffffff8
push ebp
mov dword [esp + 0x2c], eax
add eax, 0x48
push 0
push eax
mov eax, ecx
call fcn.004bbee0
mov ecx, dword [esp + 0x1c]
add esp, 8
cmp byte [ecx + 0x49], 0
mov ebp, eax
je 0x50a2bc
call fcn.004acc50
pop ebp
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x4c
ret
mov eax, dword [esp + 0x68]
mov edx, dword [esp + 0x6c]
mov ecx, dword [esp + 0x64]
mov dword [ebp + 0x10], eax
or eax, 0xffffffff
mov dword [ebp + 4], ecx
mov ecx, dword [esp + 0x70]
mov dword [ebp + 8], edx
mov dl, byte [esp + 0x18]
mov dword [ebp + 0x1c], eax
mov dword [ebp + 0x18], eax
mov eax, edi
mov dword [ebp], ebx
mov dword [ebp + 0xc], ecx
mov byte [ebp + 0x2e], dl
call fcn.004c59c0
mov cx, word [esp + 0x78]
mov dword [ebp + 0x20], eax
mov dword [ebp + 0x24], eax
mov ax, word [esp + 0x74]
mov word [ebp + 0x2c], ax
mov word [ebp + 0x14], cx
mov edx, dword [ebx + 0x80]
xor eax, eax
mov dword [ebp + 0x28], edx
mov dword [ebp + 0x2f], eax
mov dword [ebp + 0x33], eax
mov dword [ebp + 0x37], eax
mov dword [ebp + 0x3b], eax
mov dword [ebp + 0x3f], eax
mov dword [ebp + 0x43], eax
mov dword [ebp + 0x47], eax
mov dword [ebp + 0x4b], eax
add esi, 0x48
push esi
mov byte [ebp + 0x4f], al
lea eax, [ebp + 0x2f0]
push 0
push eax
call fcn.00586030
mov eax, dword [esp + 0x38]
mov dword [esp + 0x50], ebp
lea esi, [ebp + 0x50]
mov dword [esp + 0x54], esi
add eax, ebp
mov dword [esp + 0x5c], eax
lea ecx, [eax + 0x38]
mov dword [eax + 0x30], ecx
mov ecx, 3
mov word [eax + 0x2c], cx
xor ecx, ecx
mov dword [eax + 0x24], ecx
xor edx, edx
mov word [eax + 0x28], dx
mov eax, dword [esp + 0x74]
mov dword [ebp + 0x1ec], ecx
push 0x2c
push eax
lea edi, [ebp + 0x1e8]
lea edx, [esi + 0x18]
push esi
mov dword [esi], ebp
mov byte [esi + 9], cl
mov dword [esi + 4], ecx
mov dword [esi + 0xc], ecx
mov dword [esi + 0x10], 8
mov dword [esi + 0x14], edx
call fcn.004ca170
add esp, 0x18
cmp dword [esp + 0x18], 0
jne 0x50a3d9
mov eax, dword [esp + 0x6c]
test eax, eax
je 0x50a3b9
mov cl, byte [eax]
mov byte [ebp + 0x2f], cl
test dword [esp + 0x74], 0x100
je 0x50a3c7
mov byte [ebp + 0x33], 1
push str.SCAN_CONSTANT_ROW
push 0
push ebx
call fcn.004d4fe0
add esp, 0xc
jmp 0x50a423
mov edx, dword [esp + 0x64]
add edx, 8
mov dword [esp + 0x20], 0
mov dword [esp + 0x24], edx
lea esp, [esp]
mov eax, dword [esp + 0x24]
mov edx, dword [eax + 0x2c]
mov ecx, dword [edi + 4]
push esi
push eax
mov dword [edi + ecx*4 + 8], edx
inc dword [edi + 4]
mov eax, ebx
call fcn.004dfe70
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x6c]
add dword [esp + 0x2c], 0x48
inc eax
add esp, 8
cmp eax, dword [ecx]
mov dword [esp + 0x20], eax
jl 0x50a3f0
mov ebx, dword [esi + 0xc]
sub ebx, 1
js 0x50a444
jmp 0x50a430
mov edx, dword [esp + 0x64]
push ebx
push esi
push edx
call fcn.004f1dc0
add esp, 0xc
sub ebx, 1
jns 0x50a430
mov eax, dword [esp + 0x14]
cmp byte [eax + 0x49], 0
jne 0x50abe3
mov eax, dword [esp + 0x48]
xor ebx, ebx
cmp dword [eax + 0xc], ebx
jle 0x50a4b1
mov dword [esp + 0x24], ebx
mov esi, dword [eax + 0x14]
add esi, dword [esp + 0x24]
test byte [esi + 0xa], 2
jne 0x50a4a2
mov ecx, dword [esi + 0x28]
or ecx, dword [esi + 0x2c]
jne 0x50a4a2
cmp dword [esp + 0x18], ecx
je 0x50a487
mov ecx, dword [esi]
call fcn.004c3190
test eax, eax
je 0x50a4a2
mov edx, dword [ebp + 0x24]
mov eax, dword [esi]
mov ecx, dword [esp + 0x60]
push 0x10
push edx
push eax
push ecx
call fcn.005142b0
add esp, 0x10
or word [esi + 0xa], 4
mov eax, dword [esp + 0x48]
add dword [esp + 0x24], 0x30
inc ebx
cmp ebx, dword [eax + 0xc]
jl 0x50a461
mov ebx, dword [esp + 0x74]
mov esi, dword [esp + 0x70]
mov eax, ebx
and eax, 0x100
mov dword [esp + 0x2c], eax
je 0x50a4f9
mov edx, dword [esp + 0x60]
push esi
lea eax, [ebp + 0x50]
push eax
mov eax, dword [esp + 0x6c]
push edx
call fcn.004f2d70
add esp, 0xc
test eax, eax
je 0x50a4e6
mov byte [ebp + 0x33], 1
jmp 0x50a4f9
cmp dword [esp + 0x6c], 0
jne 0x50a4f9
mov eax, 0x80
or word [ebp + 0x2c], ax
mov dword [ebp + 8], esi
cmp dword [esp + 0x18], 1
jne 0x50a50d
lea ecx, [esp + 0x44]
call fcn.004f5700
test eax, eax
jne 0x50a561
lea ecx, [esp + 0x44]
push ecx
call fcn.004f4250
add esp, 4
test eax, eax
jne 0x50abe3
push eax
push ebp
call fcn.004f4d40
mov edx, dword [esp + 0x1c]
add esp, 8
cmp byte [edx + 0x49], 0
jne 0x50abe3
cmp dword [ebp + 8], 0
je 0x50a567
mov ax, word [ebp + 0x48]
inc ax
movzx ecx, ax
push ecx
push ebp
call fcn.004f4d40
mov edx, dword [esp + 0x1c]
add esp, 8
cmp byte [edx + 0x49], 0
jne 0x50abe3
cmp dword [ebp + 8], 0
jne 0x50a57f
mov eax, dword [esp + 0x14]
test dword [eax + 0x1c], 0x1000
je 0x50a57f
or eax, 0xffffffff
mov dword [ebp + 0x40], eax
mov dword [ebp + 0x44], eax
jmp 0x50a582
or eax, 0xffffffff
mov ecx, dword [esp + 0x60]
cmp dword [ecx + 0x24], 0
jne 0x50abe3
mov edx, dword [esp + 0x14]
cmp byte [edx + 0x49], 0
jne 0x50abe3
cmp byte [ebp + 0x2e], 2
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
jb 0x50a749
test esi, esi
je 0x50a749
mov eax, 0x100
mov ecx, edx
test word [ecx + 0x44], ax
jne 0x50a749
push esi
push edi
call fcn.004c2ec0
mov dword [esp + 0x44], eax
mov eax, dword [esp + 0x54]
add esp, 8
mov dword [esp + 0x40], edx
test eax, eax
je 0x50a5f5
push eax
push edi
call fcn.004c2ec0
or dword [esp + 0x44], eax
add esp, 8
or dword [esp + 0x40], edx
movzx eax, byte [ebp + 0x2e]
dec eax
cmp eax, 1
mov dword [esp + 0x24], eax
jl 0x50a749
lea edx, [eax + eax*4]
shl edx, 4
lea eax, [edx + ebp + 0x340]
mov dword [esp + 0x20], eax
jmp 0x50a620
mov ecx, dword [esp + 0x20]
mov eax, dword [ecx - 0x10]
movzx ecx, byte [eax + 0x10]
lea edx, [ecx + ecx*8]
mov ecx, dword [ebp + 4]
test byte [ecx + edx*8 + 0x2c], 8
lea ecx, [ecx + edx*8 + 8]
mov dword [esp + 0x6c], eax
mov dword [esp + 0x30], ecx
je 0x50a72e
cmp word [esp + 0x2c], 0
jne 0x50a65d
test dword [eax + 0x24], 0x1000
je 0x50a72e
mov edi, dword [eax + 0xc]
mov esi, dword [eax + 8]
mov eax, esi
and eax, dword [esp + 0x3c]
mov ecx, edi
and ecx, dword [esp + 0x40]
or eax, ecx
jne 0x50a72e
mov eax, dword [esp + 0x48]
mov ebx, dword [eax + 0xc]
mov ecx, dword [eax + 0x14]
lea ebx, [ebx + ebx*2]
shl ebx, 4
add ebx, ecx
cmp ecx, ebx
jae 0x50a6c0
lea ecx, [ecx]
mov eax, dword [ecx + 0x28]
mov edx, dword [ecx + 0x2c]
and eax, esi
and edx, edi
or eax, edx
je 0x50a6b3
mov eax, dword [ecx]
test byte [eax + 4], 1
je 0x50a6bc
movsx edx, word [eax + 0x24]
mov eax, dword [esp + 0x30]
cmp edx, dword [eax + 0x2c]
jne 0x50a6bc
add ecx, 0x30
cmp ecx, ebx
jb 0x50a690
jmp 0x50a6c0
cmp ecx, ebx
jb 0x50a72e
mov ecx, dword [esp + 0x48]
mov eax, dword [ecx + 0x14]
not esi
and dword [esp + 0x34], esi
not edi
and dword [esp + 0x38], edi
cmp eax, ebx
jae 0x50a6fb
mov esi, dword [esp + 0x6c]
mov edi, 4
mov ecx, dword [eax + 0x28]
mov edx, dword [eax + 0x2c]
and ecx, dword [esi + 8]
and edx, dword [esi + 0xc]
or ecx, edx
je 0x50a6f4
or word [eax + 0xa], di
add eax, 0x30
cmp eax, ebx
jb 0x50a6e0
movzx eax, byte [ebp + 0x2e]
mov ecx, dword [esp + 0x24]
lea edx, [eax - 1]
cmp ecx, edx
je 0x50a727
sub eax, ecx
lea eax, [eax + eax*4]
shl eax, 4
sub eax, 0x50
push eax
mov eax, dword [esp + 0x24]
push eax
add eax, 0xffffffb0
push eax
call fcn.00589c90
add esp, 0xc
dec byte [ebp + 0x2e]
dec dword [esp + 0x18]
mov eax, dword [esp + 0x24]
sub dword [esp + 0x20], 0x50
dec eax
cmp eax, 1
mov dword [esp + 0x24], eax
jge 0x50a620
mov ebx, dword [esp + 0x74]
movsx ecx, word [ebp + 0x48]
mov eax, dword [ebp]
add dword [eax + 0x80], ecx
test bl, 4
je 0x50a7b4
mov esi, dword [ebp + 0x330]
mov ecx, dword [esi + 0x24]
mov eax, ecx
shr eax, 0xc
and eax, 1
jne 0x50a788
test bl, 8
je 0x50a7b4
test ecx, 0x400
jne 0x50a7b4
test ecx, 0x2000
je 0x50a788
test bl, 0x10
je 0x50a7b4
test eax, eax
mov eax, dword [esp + 0x64]
sete dl
inc dl
mov byte [ebp + 0x31], dl
mov edx, dword [eax + 0x18]
test byte [edx + 0x24], 0x20
jne 0x50a7b4
test cl, 0x40
je 0x50a7b4
test bl, 8
je 0x50a7ae
mov byte [esp + 0x13], 8
and ecx, 0xffffffbf
mov dword [esi + 0x24], ecx
mov eax, dword [esp + 0x18]
test eax, eax
jle 0x50ab16
lea ecx, [ebp + 0x330]
mov dword [esp + 0x20], ecx
mov dword [esp + 0x2c], eax
mov edi, edi
mov esi, dword [esp + 0x20]
movzx eax, byte [esi - 0x14]
lea edx, [eax + eax*8]
mov eax, dword [esp + 0x64]
mov edi, dword [eax + edx*8 + 0x18]
lea ebx, [eax + edx*8 + 8]
mov eax, dword [edi + 0x48]
mov edx, 0xfff0bdc0
mov dword [esp + 0x24], edx
test eax, eax
je 0x50a81c
mov ecx, dword [esp + 0x14]
mov ecx, dword [ecx + 0x10]
xor edx, edx
add ecx, 0xc
mov dword [esp + 0x24], edx
cmp dword [ecx], eax
je 0x50a81c
jmp 0x50a810
add ecx, 0x10
inc edx
cmp dword [ecx], eax
jne 0x50a810
mov dword [esp + 0x24], edx
test byte [edi + 0x24], 2
mov eax, dword [esi]
mov dword [esp + 0x6c], eax
jne 0x50a9e6
cmp dword [edi + 0xc], 0
jne 0x50a9e6
mov eax, dword [eax + 0x24]
test eax, 0x400
je 0x50a8c7
mov ecx, dword [esp + 0x14]
mov eax, edi
call fcn.004b8dd0
mov edx, dword [esp + 0x1c]
push 0
mov esi, eax
mov eax, dword [ebx + 0x2c]
push 0
push eax
push 0xa4
push edx
call fcn.004c5720
mov ecx, dword [esp + 0x30]
mov edx, dword [ecx]
add esp, 0x14
cmp byte [edx + 0x49], 0
jne 0x50a9e6
test eax, eax
jge 0x50a888
mov eax, ecx
mov eax, dword [eax + 0x88]
dec eax
mov edx, dword [esp + 0x1c]
lea ecx, [eax + eax*4]
mov eax, dword [edx + 0x58]
cmp byte [eax + ecx*4 + 1], 0
lea ecx, [eax + ecx*4]
je 0x50a8b0
push esi
push edx
mov eax, 0xfffffff4
call fcn.004c00f0
add esp, 8
jmp 0x50a9e6
test esi, esi
je 0x50a9e6
mov dword [ecx + 0x10], esi
mov byte [ecx + 1], 0xf4
inc dword [esi + 0xc]
jmp 0x50a9e6
cmp dword [edi + 0x38], 0
jne 0x50a9e6
test al, 0x40
jne 0x50a9d0
cmp word [esp + 0x28], 0
jne 0x50a9d0
cmp byte [ebp + 0x31], 0
mov eax, 0x6d
je 0x50a8fb
mov ecx, dword [ebx + 0x2c]
mov eax, 0x6e
mov dword [ebp + 0x18], ecx
mov ecx, dword [esp + 0x60]
push eax
push edx
mov edx, dword [ebx + 0x2c]
push edx
mov eax, edi
call fcn.004fabb0
add esp, 0xc
cmp byte [ebp + 0x31], 0
jne 0x50a9bd
cmp word [edi + 0x2a], 0x40
jge 0x50a9bd
test byte [edi + 0x24], 0x20
jne 0x50a9bd
mov ecx, dword [ebx + 0x38]
mov edx, dword [ebx + 0x3c]
mov esi, ecx
xor eax, eax
or esi, edx
je 0x50a94d
lea esp, [esp]
shrd ecx, edx, 1
shr edx, 1
mov esi, ecx
inc eax
or esi, edx
jne 0x50a940
mov esi, dword [esp + 0x1c]
mov ecx, dword [esi]
cmp byte [ecx + 0x49], 0
je 0x50a972
push 0xfffffffffffffffd
call fcn.004bff60
movzx dx, byte [esp + 0x17]
add esp, 4
mov ecx, esi
call fcn.004b3950
jmp 0x50a9e6
mov ecx, dword [esi + 0x88]
mov edx, dword [esi + 0x58]
dec ecx
lea ecx, [ecx + ecx*4]
cmp byte [edx + ecx*4 + 1], 0
lea ecx, [edx + ecx*4]
je 0x50a9a7
push eax
push esi
mov eax, 0xfffffffd
call fcn.004c00f0
movzx dx, byte [esp + 0x1b]
add esp, 8
mov ecx, esi
call fcn.004b3950
jmp 0x50a9e6
movzx dx, byte [esp + 0x13]
mov dword [ecx + 0x10], eax
mov byte [ecx + 1], 0xfd
mov ecx, esi
call fcn.004b3950
jmp 0x50a9e6
mov esi, dword [esp + 0x1c]
movzx dx, byte [esp + 0x13]
mov ecx, esi
call fcn.004b3950
jmp 0x50a9e6
mov eax, dword [edi]
mov ecx, dword [edi + 0x1c]
push eax
mov eax, dword [esp + 0x64]
push 0
push ecx
push edx
call fcn.004c7650
add esp, 0x10
mov edx, dword [esp + 0x6c]
test dword [edx + 0x24], 0x200
je 0x50aad2
test byte [edi + 0x24], 0x20
mov eax, edx
mov esi, dword [eax + 0x20]
mov ecx, 0x6d
je 0x50aa25
mov edx, dword [esi + 0x38]
and dl, 3
cmp dl, 2
jne 0x50aa25
cmp word [esp + 0x28], 0
je 0x50aa25
mov eax, dword [esp + 0x20]
mov eax, dword [eax - 0x3c]
xor ecx, ecx
jmp 0x50aa76
cmp byte [ebp + 0x31], 0
mov eax, dword [esp + 0x78]
je 0x50aa56
mov ecx, dword [ebx + 0x10]
mov ecx, dword [ecx + 8]
test ecx, ecx
je 0x50aa4c
lea esp, [esp]
cmp ecx, esi
je 0x50aa4c
mov ecx, dword [ecx + 0x14]
inc eax
test ecx, ecx
jne 0x50aa40
mov ecx, 0x6e
mov dword [ebp + 0x1c], eax
jmp 0x50aa76
test eax, eax
je 0x50aa69
cmp word [esp + 0x28], 0
je 0x50aa69
mov ecx, 0x6c
jmp 0x50aa76
mov edx, dword [esp + 0x60]
mov eax, dword [edx + 0x28]
lea edi, [eax + 1]
mov dword [edx + 0x28], edi
mov edx, dword [esp + 0x20]
mov dword [edx - 0x38], eax
test ecx, ecx
je 0x50aad2
mov edi, dword [esp + 0x24]
mov edx, dword [esi + 0x2c]
mov ebx, dword [esp + 0x1c]
push edi
push edx
push eax
push ecx
push ebx
call fcn.004c5720
mov ecx, esi
mov esi, dword [esp + 0x74]
add esp, 0x14
mov eax, esi
call fcn.004f9880
mov eax, dword [esp + 0x6c]
mov eax, dword [eax + 0x24]
test al, 0xf
je 0x50aada
test eax, 0x8002
jne 0x50aada
test byte [ebp + 0x2c], 1
jne 0x50aada
cmp byte [ebp + 0x33], 2
je 0x50aada
mov edx, 2
mov ecx, ebx
call fcn.004b3950
jmp 0x50aada
mov edi, dword [esp + 0x24]
mov esi, dword [esp + 0x60]
test edi, edi
jl 0x50ab06
mov eax, dword [esi + 0x74]
test eax, eax
jne 0x50aae7
mov eax, esi
mov esi, dword [eax + 0x54]
mov edx, 1
mov ecx, edi
shl edx, cl
test esi, edx
jne 0x50ab06
or edx, esi
mov dword [eax + 0x54], edx
cmp edi, 1
jne 0x50ab06
call fcn.00502560
add dword [esp + 0x20], 0x50
sub dword [esp + 0x2c], 1
jne 0x50a7d0
mov ecx, dword [esp + 0x1c]
mov edx, dword [ecx + 0x88]
mov eax, dword [esp + 0x14]
mov dword [ebp + 0x38], edx
cmp byte [eax + 0x49], 0
jne 0x50abe3
xor ebx, ebx
cmp dword [esp + 0x18], ebx
jle 0x50abd9
lea esi, [ebp + 0x31c]
mov ecx, dword [esi + 0x14]
test dword [ecx + 0x24], 0x4000
je 0x50ab87
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x34]
lea edx, [esi - 0x2c]
push edx
push eax
movzx eax, byte [esi]
lea edx, [eax + eax*8]
mov eax, dword [esp + 0x6c]
push ecx
lea ecx, [eax + edx*8 + 8]
mov edx, dword [esp + 0x6c]
push ecx
lea eax, [ebp + 0x50]
push eax
push edx
call fcn.004fd800
mov eax, dword [esp + 0x2c]
add esp, 0x18
cmp byte [eax + 0x49], 0
jne 0x50abe3
mov ecx, dword [esp + 0x74]
mov edx, dword [esp + 0x64]
mov edi, dword [esp + 0x60]
push ecx
lea ecx, [esi - 0x2c]
call fcn.004ded00
mov edx, dword [esp + 0x20]
mov eax, dword [edx + 0x88]
mov ecx, dword [esp + 0x3c]
mov edx, dword [esp + 0x38]
push ecx
push edx
push ebx
push ebp
mov dword [esi - 0xc], eax
call fcn.005083a0
mov dword [esp + 0x48], eax
mov eax, dword [esi - 0x14]
inc ebx
add esp, 0x14
add esi, 0x50
cmp ebx, dword [esp + 0x18]
mov dword [esp + 0x38], edx
mov dword [ebp + 0x20], eax
jl 0x50ab43
mov eax, ebp
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x4c
ret
mov ecx, dword [ebp + 0x28]
mov edx, dword [esp + 0x60]
mov edi, dword [esp + 0x14]
push ebp
mov dword [edx + 0x80], ecx
call fcn.004ca3a0
add esp, 4
pop ebp
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x4c
ret