Function at 0x50a010
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 0x50a059
cmp dword [eax], 0x40
jl 0x50a059
xor eax, eax
mov dword [esp + 0x68], eax
mov dword [esp + 0x48], eax
test byte [ecx + 0x44], 0x10
je 0x50a06b
and dword [esp + 0x70], 0xfeff
mov eax, dword [esp + 0x60]
mov edx, dword [eax]
cmp edx, 0x40
jle 0x50a090
push 0x40
push str.at_most__d_tables_in_a_join
mov esi, ebx
call fcn.004d3340
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 0x50a0a9
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.004bbd30
mov ecx, dword [esp + 0x1c]
add esp, 8
cmp byte [ecx + 0x49], 0
mov ebp, eax
je 0x50a0ec
call fcn.004aca90
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.004c5810
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.00585e50
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.004c9fb0
add esp, 0x18
cmp dword [esp + 0x18], 0
jne 0x50a209
mov eax, dword [esp + 0x6c]
test eax, eax
je 0x50a1e9
mov cl, byte [eax]
mov byte [ebp + 0x2f], cl
test dword [esp + 0x74], 0x100
je 0x50a1f7
mov byte [ebp + 0x33], 1
push str.SCAN_CONSTANT_ROW
push 0
push ebx
call fcn.004d4e20
add esp, 0xc
jmp 0x50a253
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.004dfcb0
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 0x50a220
mov ebx, dword [esi + 0xc]
sub ebx, 1
js 0x50a274
jmp 0x50a260
mov edx, dword [esp + 0x64]
push ebx
push esi
push edx
call fcn.004f1c00
add esp, 0xc
sub ebx, 1
jns 0x50a260
mov eax, dword [esp + 0x14]
cmp byte [eax + 0x49], 0
jne 0x50aa13
mov eax, dword [esp + 0x48]
xor ebx, ebx
cmp dword [eax + 0xc], ebx
jle 0x50a2e1
mov dword [esp + 0x24], ebx
mov esi, dword [eax + 0x14]
add esi, dword [esp + 0x24]
test byte [esi + 0xa], 2
jne 0x50a2d2
mov ecx, dword [esi + 0x28]
or ecx, dword [esi + 0x2c]
jne 0x50a2d2
cmp dword [esp + 0x18], ecx
je 0x50a2b7
mov ecx, dword [esi]
call fcn.004c2fe0
test eax, eax
je 0x50a2d2
mov edx, dword [ebp + 0x24]
mov eax, dword [esi]
mov ecx, dword [esp + 0x60]
push 0x10
push edx
push eax
push ecx
call fcn.005140e0
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 0x50a291
mov ebx, dword [esp + 0x74]
mov esi, dword [esp + 0x70]
mov eax, ebx
and eax, 0x100
mov dword [esp + 0x2c], eax
je 0x50a329
mov edx, dword [esp + 0x60]
push esi
lea eax, [ebp + 0x50]
push eax
mov eax, dword [esp + 0x6c]
push edx
call fcn.004f2bb0
add esp, 0xc
test eax, eax
je 0x50a316
mov byte [ebp + 0x33], 1
jmp 0x50a329
cmp dword [esp + 0x6c], 0
jne 0x50a329
mov eax, 0x80
or word [ebp + 0x2c], ax
mov dword [ebp + 8], esi
cmp dword [esp + 0x18], 1
jne 0x50a33d
lea ecx, [esp + 0x44]
call fcn.004f5540
test eax, eax
jne 0x50a391
lea ecx, [esp + 0x44]
push ecx
call fcn.004f4090
add esp, 4
test eax, eax
jne 0x50aa13
push eax
push ebp
call fcn.004f4b80
mov edx, dword [esp + 0x1c]
add esp, 8
cmp byte [edx + 0x49], 0
jne 0x50aa13
cmp dword [ebp + 8], 0
je 0x50a397
mov ax, word [ebp + 0x48]
inc ax
movzx ecx, ax
push ecx
push ebp
call fcn.004f4b80
mov edx, dword [esp + 0x1c]
add esp, 8
cmp byte [edx + 0x49], 0
jne 0x50aa13
cmp dword [ebp + 8], 0
jne 0x50a3af
mov eax, dword [esp + 0x14]
test dword [eax + 0x1c], 0x1000
je 0x50a3af
or eax, 0xffffffff
mov dword [ebp + 0x40], eax
mov dword [ebp + 0x44], eax
jmp 0x50a3b2
or eax, 0xffffffff
mov ecx, dword [esp + 0x60]
cmp dword [ecx + 0x24], 0
jne 0x50aa13
mov edx, dword [esp + 0x14]
cmp byte [edx + 0x49], 0
jne 0x50aa13
cmp byte [ebp + 0x2e], 2
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
jb 0x50a579
test esi, esi
je 0x50a579
mov eax, 0x100
mov ecx, edx
test word [ecx + 0x44], ax
jne 0x50a579
push esi
push edi
call fcn.004c2d10
mov dword [esp + 0x44], eax
mov eax, dword [esp + 0x54]
add esp, 8
mov dword [esp + 0x40], edx
test eax, eax
je 0x50a425
push eax
push edi
call fcn.004c2d10
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 0x50a579
lea edx, [eax + eax*4]
shl edx, 4
lea eax, [edx + ebp + 0x340]
mov dword [esp + 0x20], eax
jmp 0x50a450
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 0x50a55e
cmp word [esp + 0x2c], 0
jne 0x50a48d
test dword [eax + 0x24], 0x1000
je 0x50a55e
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 0x50a55e
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 0x50a4f0
lea ecx, [ecx]
mov eax, dword [ecx + 0x28]
mov edx, dword [ecx + 0x2c]
and eax, esi
and edx, edi
or eax, edx
je 0x50a4e3
mov eax, dword [ecx]
test byte [eax + 4], 1
je 0x50a4ec
movsx edx, word [eax + 0x24]
mov eax, dword [esp + 0x30]
cmp edx, dword [eax + 0x2c]
jne 0x50a4ec
add ecx, 0x30
cmp ecx, ebx
jb 0x50a4c0
jmp 0x50a4f0
cmp ecx, ebx
jb 0x50a55e
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 0x50a52b
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 0x50a524
or word [eax + 0xa], di
add eax, 0x30
cmp eax, ebx
jb 0x50a510
movzx eax, byte [ebp + 0x2e]
mov ecx, dword [esp + 0x24]
lea edx, [eax - 1]
cmp ecx, edx
je 0x50a557
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.00589ab0
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 0x50a450
mov ebx, dword [esp + 0x74]
movsx ecx, word [ebp + 0x48]
mov eax, dword [ebp]
add dword [eax + 0x80], ecx
test bl, 4
je 0x50a5e4
mov esi, dword [ebp + 0x330]
mov ecx, dword [esi + 0x24]
mov eax, ecx
shr eax, 0xc
and eax, 1
jne 0x50a5b8
test bl, 8
je 0x50a5e4
test ecx, 0x400
jne 0x50a5e4
test ecx, 0x2000
je 0x50a5b8
test bl, 0x10
je 0x50a5e4
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 0x50a5e4
test cl, 0x40
je 0x50a5e4
test bl, 8
je 0x50a5de
mov byte [esp + 0x13], 8
and ecx, 0xffffffbf
mov dword [esi + 0x24], ecx
mov eax, dword [esp + 0x18]
test eax, eax
jle 0x50a946
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 0x50a64c
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 0x50a64c
jmp 0x50a640
add ecx, 0x10
inc edx
cmp dword [ecx], eax
jne 0x50a640
mov dword [esp + 0x24], edx
test byte [edi + 0x24], 2
mov eax, dword [esi]
mov dword [esp + 0x6c], eax
jne 0x50a816
cmp dword [edi + 0xc], 0
jne 0x50a816
mov eax, dword [eax + 0x24]
test eax, 0x400
je 0x50a6f7
mov ecx, dword [esp + 0x14]
mov eax, edi
call fcn.004b8c10
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.004c5570
mov ecx, dword [esp + 0x30]
mov edx, dword [ecx]
add esp, 0x14
cmp byte [edx + 0x49], 0
jne 0x50a816
test eax, eax
jge 0x50a6b8
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 0x50a6e0
push esi
push edx
mov eax, 0xfffffff4
call fcn.004bff40
add esp, 8
jmp 0x50a816
test esi, esi
je 0x50a816
mov dword [ecx + 0x10], esi
mov byte [ecx + 1], 0xf4
inc dword [esi + 0xc]
jmp 0x50a816
cmp dword [edi + 0x38], 0
jne 0x50a816
test al, 0x40
jne 0x50a800
cmp word [esp + 0x28], 0
jne 0x50a800
cmp byte [ebp + 0x31], 0
mov eax, 0x6d
je 0x50a72b
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.004fa9f0
add esp, 0xc
cmp byte [ebp + 0x31], 0
jne 0x50a7ed
cmp word [edi + 0x2a], 0x40
jge 0x50a7ed
test byte [edi + 0x24], 0x20
jne 0x50a7ed
mov ecx, dword [ebx + 0x38]
mov edx, dword [ebx + 0x3c]
mov esi, ecx
xor eax, eax
or esi, edx
je 0x50a77d
lea esp, [esp]
shrd ecx, edx, 1
shr edx, 1
mov esi, ecx
inc eax
or esi, edx
jne 0x50a770
mov esi, dword [esp + 0x1c]
mov ecx, dword [esi]
cmp byte [ecx + 0x49], 0
je 0x50a7a2
push 0xfffffffffffffffd
call fcn.004bfdb0
movzx dx, byte [esp + 0x17]
add esp, 4
mov ecx, esi
call fcn.004b3790
jmp 0x50a816
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 0x50a7d7
push eax
push esi
mov eax, 0xfffffffd
call fcn.004bff40
movzx dx, byte [esp + 0x1b]
add esp, 8
mov ecx, esi
call fcn.004b3790
jmp 0x50a816
movzx dx, byte [esp + 0x13]
mov dword [ecx + 0x10], eax
mov byte [ecx + 1], 0xfd
mov ecx, esi
call fcn.004b3790
jmp 0x50a816
mov esi, dword [esp + 0x1c]
movzx dx, byte [esp + 0x13]
mov ecx, esi
call fcn.004b3790
jmp 0x50a816
mov eax, dword [edi]
mov ecx, dword [edi + 0x1c]
push eax
mov eax, dword [esp + 0x64]
push 0
push ecx
push edx
call fcn.004c74a0
add esp, 0x10
mov edx, dword [esp + 0x6c]
test dword [edx + 0x24], 0x200
je 0x50a902
test byte [edi + 0x24], 0x20
mov eax, edx
mov esi, dword [eax + 0x20]
mov ecx, 0x6d
je 0x50a855
mov edx, dword [esi + 0x38]
and dl, 3
cmp dl, 2
jne 0x50a855
cmp word [esp + 0x28], 0
je 0x50a855
mov eax, dword [esp + 0x20]
mov eax, dword [eax - 0x3c]
xor ecx, ecx
jmp 0x50a8a6
cmp byte [ebp + 0x31], 0
mov eax, dword [esp + 0x78]
je 0x50a886
mov ecx, dword [ebx + 0x10]
mov ecx, dword [ecx + 8]
test ecx, ecx
je 0x50a87c
lea esp, [esp]
cmp ecx, esi
je 0x50a87c
mov ecx, dword [ecx + 0x14]
inc eax
test ecx, ecx
jne 0x50a870
mov ecx, 0x6e
mov dword [ebp + 0x1c], eax
jmp 0x50a8a6
test eax, eax
je 0x50a899
cmp word [esp + 0x28], 0
je 0x50a899
mov ecx, 0x6c
jmp 0x50a8a6
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 0x50a902
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.004c5570
mov ecx, esi
mov esi, dword [esp + 0x74]
add esp, 0x14
mov eax, esi
call fcn.004f96c0
mov eax, dword [esp + 0x6c]
mov eax, dword [eax + 0x24]
test al, 0xf
je 0x50a90a
test eax, 0x8002
jne 0x50a90a
test byte [ebp + 0x2c], 1
jne 0x50a90a
cmp byte [ebp + 0x33], 2
je 0x50a90a
mov edx, 2
mov ecx, ebx
call fcn.004b3790
jmp 0x50a90a
mov edi, dword [esp + 0x24]
mov esi, dword [esp + 0x60]
test edi, edi
jl 0x50a936
mov eax, dword [esi + 0x74]
test eax, eax
jne 0x50a917
mov eax, esi
mov esi, dword [eax + 0x54]
mov edx, 1
mov ecx, edi
shl edx, cl
test esi, edx
jne 0x50a936
or edx, esi
mov dword [eax + 0x54], edx
cmp edi, 1
jne 0x50a936
call fcn.00502390
add dword [esp + 0x20], 0x50
sub dword [esp + 0x2c], 1
jne 0x50a600
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 0x50aa13
xor ebx, ebx
cmp dword [esp + 0x18], ebx
jle 0x50aa09
lea esi, [ebp + 0x31c]
mov ecx, dword [esi + 0x14]
test dword [ecx + 0x24], 0x4000
je 0x50a9b7
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.004fd630
mov eax, dword [esp + 0x2c]
add esp, 0x18
cmp byte [eax + 0x49], 0
jne 0x50aa13
mov ecx, dword [esp + 0x74]
mov edx, dword [esp + 0x64]
mov edi, dword [esp + 0x60]
push ecx
lea ecx, [esi - 0x2c]
call fcn.004deb40
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.005081d0
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 0x50a973
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.004ca1e0
add esp, 4
pop ebp
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x4c
ret