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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x54
push ebx
push esi
mov esi, dword [ebp + 8]
mov eax, dword [esi + 8]
mov ebx, dword [esi]
mov dword [esp + 0x18], eax
xor eax, eax
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], eax
mov dword [esp + 0x50], eax
mov dword [esp + 0x54], eax
mov dword [esp + 0x58], eax
mov eax, dword [ebp + 0x14]
push edi
mov byte [esp + 0x12], 0
mov dword [esp + 0x18], ebx
test eax, eax
je 0x49d10c
cmp dword [eax], 0x40
jl 0x49d10c
xor eax, eax
mov dword [ebp + 0x14], eax
mov dword [esp + 0x50], eax
test byte [ebx + 0x40], 0x20
je 0x49d11d
and dword [ebp + 0x1c], 0xfeff
mov ecx, dword [ebp + 0xc]
mov eax, dword [ecx]
cmp eax, 0x40
jle 0x49d13f
push 0x40
push str.at_most__d_tables_in_a_join
call fcn.004369c0
add esp, 8
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp + 0x1c]
and ecx, 0x20
mov dword [esp + 0x38], ecx
je 0x49d156
mov eax, 1
mov dword [esp + 0x14], eax
jmp 0x49d15a
mov dword [esp + 0x14], eax
lea esi, [eax + eax*4]
shl esi, 4
lea eax, [esi + 0x2f7]
and eax, 0xfffffff8
mov dword [esp + 0x3c], eax
add eax, 0x48
push 0
push eax
mov eax, ebx
call fcn.004341b0
add esp, 8
cmp byte [ebx + 0x45], 0
mov edi, eax
je 0x49d195
mov ecx, ebx
call fcn.00433e80
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 0x14]
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
mov ebx, dword [ebp + 8]
mov dword [edi + 8], eax
or eax, 0xffffffff
mov dword [edi + 0x1c], eax
mov dword [edi + 0x18], eax
mov al, byte [esp + 0x14]
mov dword [edi + 4], edx
mov edx, dword [ebp + 0x18]
mov byte [edi + 0x2e], al
mov eax, dword [esp + 0x1c]
mov dword [edi], ebx
mov dword [edi + 0x10], ecx
mov dword [edi + 0xc], edx
call fcn.00451f90
mov cx, word [ebp + 0x1c]
mov dx, word [ebp + 0x20]
mov dword [edi + 0x20], eax
mov dword [edi + 0x24], eax
mov word [edi + 0x2c], cx
mov word [edi + 0x14], dx
mov eax, dword [ebx + 0x84]
mov dword [edi + 0x28], eax
xor eax, eax
mov dword [edi + 0x2f], eax
mov dword [edi + 0x33], eax
mov dword [edi + 0x37], eax
mov dword [edi + 0x3b], eax
mov dword [edi + 0x3f], eax
mov dword [edi + 0x43], eax
mov dword [edi + 0x47], eax
mov dword [edi + 0x4b], eax
add esi, 0x48
push esi
mov byte [edi + 0x4f], al
lea eax, [edi + 0x2f0]
push 0
push eax
call fcn.00591690
mov ecx, dword [esp + 0x48]
lea eax, [edi + ecx]
mov dword [esp + 0x60], eax
mov dword [esp + 0x54], edi
lea ebx, [edi + 0x50]
mov dword [esp + 0x58], ebx
lea edx, [eax + 0x38]
mov dword [eax + 0x30], edx
xor ecx, ecx
mov word [eax + 0x28], cx
mov dword [eax + 0x24], ecx
mov edx, 3
mov word [eax + 0x2c], dx
mov dword [edi + 0x1ec], ecx
add esp, 0xc
lea esi, [edi + 0x1e8]
mov dword [ebx + 4], ecx
mov dword [ebx + 0xc], ecx
mov ecx, dword [ebp + 0x10]
push 0x47
push ecx
lea eax, [ebx + 0x18]
push ebx
mov dword [ebx], edi
mov dword [ebx + 0x10], 8
mov dword [ebx + 0x14], eax
call fcn.00497a20
add esp, 0xc
cmp dword [esp + 0x14], 0
jne 0x49d29a
mov eax, dword [ebp + 0x14]
test eax, eax
je 0x49d28d
mov dl, byte [eax]
mov byte [edi + 0x2f], dl
test dword [ebp + 0x1c], 0x100
je 0x49d29a
mov byte [edi + 0x33], 1
mov eax, dword [ebp + 0xc]
cmp dword [eax], 0
mov dword [esp + 0x20], 0
jle 0x49d2e7
mov ecx, eax
add ecx, 8
mov dword [esp + 0x34], ecx
mov eax, dword [esp + 0x34]
mov edx, dword [esi + 4]
mov ecx, dword [eax + 0x30]
mov dword [esi + edx*4 + 8], ecx
mov edx, dword [ebp + 8]
inc dword [esi + 4]
push ebx
push eax
push edx
call fcn.00497d90
mov eax, dword [esp + 0x2c]
mov ecx, dword [ebp + 0xc]
add dword [esp + 0x40], 0x50
inc eax
add esp, 0xc
cmp eax, dword [ecx]
mov dword [esp + 0x20], eax
jl 0x49d2b3
mov eax, dword [ebx + 0xc]
sub eax, 1
mov dword [esp + 0x34], eax
js 0x49d30c
mov edx, dword [esp + 0x34]
mov eax, dword [ebp + 0xc]
push edx
push ebx
push eax
call fcn.00496ff0
add esp, 0xc
sub dword [esp + 0x34], 1
jns 0x49d2f3
mov ecx, dword [esp + 0x18]
cmp byte [ecx + 0x45], 0
jne 0x49d41a
mov ecx, dword [esp + 0x4c]
xor eax, eax
cmp dword [ecx + 0xc], eax
mov dword [esp + 0x20], eax
jle 0x49d381
mov dword [esp + 0x34], eax
lea ecx, [ecx]
mov ebx, dword [ecx + 0x14]
add ebx, dword [esp + 0x34]
mov edx, dword [ebx + 0x28]
or edx, dword [ebx + 0x2c]
jne 0x49d36a
cmp dword [esp + 0x14], edx
je 0x49d350
mov ecx, dword [ebx]
call fcn.0049d070
test eax, eax
je 0x49d36a
mov eax, dword [edi + 0x24]
mov ecx, dword [ebx]
mov edx, dword [ebp + 8]
push 0x10
push eax
push ecx
push edx
call fcn.0046a390
add esp, 0x10
or word [ebx + 0xa], 4
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x4c]
add dword [esp + 0x34], 0x30
inc eax
cmp eax, dword [ecx + 0xc]
mov dword [esp + 0x20], eax
jl 0x49d330
mov eax, dword [ebp + 0x1c]
and eax, 0x100
mov dword [esp + 0x34], eax
je 0x49d3c2
mov ebx, dword [ebp + 0x18]
push ebx
lea eax, [edi + 0x50]
push eax
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp + 0xc]
call fcn.00498500
add esp, 0xc
test eax, eax
je 0x49d3b0
mov byte [edi + 0x33], 1
jmp 0x49d3c2
cmp dword [ebp + 0x14], 0
jne 0x49d3c2
mov ecx, 0x80
or word [edi + 0x2c], cx
mov dword [edi + 8], ebx
cmp dword [esp + 0x14], 1
jne 0x49d3d6
lea ecx, [esp + 0x48]
call fcn.0049ce80
test eax, eax
jne 0x49d43a
lea edx, [esp + 0x48]
push edx
call fcn.0049bba0
add esp, 4
test eax, eax
jne 0x49d41a
push eax
push edi
call fcn.0049c530
mov ebx, dword [esp + 0x20]
add esp, 8
cmp byte [ebx + 0x45], 0
jne 0x49d41a
cmp dword [edi + 8], 0
je 0x49d444
mov ax, word [edi + 0x48]
inc ax
movzx ecx, ax
push ecx
push edi
call fcn.0049c530
add esp, 8
cmp byte [ebx + 0x45], 0
je 0x49d43e
mov eax, dword [edi + 0x28]
mov ecx, dword [ebp + 8]
mov esi, dword [esp + 0x18]
mov ebx, edi
mov dword [ecx + 0x84], eax
call fcn.00499910
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ebx, dword [esp + 0x18]
cmp dword [edi + 8], 0
jne 0x49d456
test dword [ebx + 0x18], 0x1000
je 0x49d456
or eax, 0xffffffff
mov dword [edi + 0x40], eax
mov dword [edi + 0x44], eax
mov edx, dword [ebp + 8]
cmp dword [edx + 0x24], 0
jne 0x49d41a
cmp byte [ebx + 0x45], 0
jne 0x49d41a
cmp byte [edi + 0x2e], 2
jb 0x49d56c
cmp dword [ebp + 0x18], 0
je 0x49d56c
mov ecx, dword [esp + 0x18]
mov eax, 0x400
test word [ecx + 0x40], ax
jne 0x49d56c
mov ebx, dword [ebp + 0x18]
push esi
call fcn.00497d30
mov ebx, dword [esp + 0x54]
add esp, 4
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], edx
test ebx, ebx
je 0x49d4b9
push esi
call fcn.00497d30
or dword [esp + 0x44], eax
add esp, 4
or dword [esp + 0x44], edx
cmp byte [edi + 0x2e], 2
jb 0x49d56c
mov al, byte [edi + 0x2e]
mov edx, dword [edi + 4]
movzx eax, al
lea eax, [eax + eax*4]
shl eax, 4
mov eax, dword [eax + edi + 0x2e0]
movzx ecx, byte [eax + 0x10]
lea ecx, [ecx + ecx*4]
shl ecx, 4
test byte [ecx + edx + 0x2c], 8
je 0x49d56c
cmp word [esp + 0x34], 0
jne 0x49d4ff
test dword [eax + 0x24], 0x1000
je 0x49d56c
mov edx, dword [eax + 8]
mov ebx, dword [eax + 0xc]
mov eax, edx
and eax, dword [esp + 0x40]
mov ecx, ebx
and ecx, dword [esp + 0x44]
mov dword [esp + 0x28], edx
or eax, ecx
jne 0x49d56c
mov eax, dword [esp + 0x4c]
mov esi, dword [eax + 0xc]
mov ecx, dword [eax + 0x14]
lea esi, [esi + esi*2]
shl esi, 4
add esi, ecx
cmp ecx, esi
jae 0x49d558
jmp 0x49d535
mov edx, dword [esp + 0x28]
mov eax, dword [ecx + 0x28]
and eax, edx
mov edx, dword [ecx + 0x2c]
and edx, ebx
or eax, edx
je 0x49d54b
mov eax, dword [ecx]
test byte [eax + 4], 1
je 0x49d554
add ecx, 0x30
cmp ecx, esi
jb 0x49d531
jmp 0x49d558
cmp ecx, esi
jb 0x49d56c
mov al, byte [edi + 0x2e]
dec dword [esp + 0x14]
dec al
mov byte [edi + 0x2e], al
cmp al, 2
jae 0x49d4c3
movsx ecx, word [edi + 0x48]
mov eax, dword [edi]
mov dl, byte [ebp + 0x1c]
add dword [eax + 0x84], ecx
test dl, 4
je 0x49d5cb
mov esi, dword [edi + 0x330]
mov ecx, dword [esi + 0x24]
mov eax, ecx
shr eax, 0xc
and eax, 1
jne 0x49d5a0
test dl, 8
je 0x49d5cb
test ecx, 0x400
jne 0x49d5cb
test eax, eax
sete al
inc al
mov byte [edi + 0x31], al
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 0x18]
test byte [eax + 0x24], 0x20
jne 0x49d5cb
test cl, 0x40
je 0x49d5cb
test dl, 8
je 0x49d5c5
mov byte [esp + 0x12], 8
and ecx, 0xffffffbf
mov dword [esi + 0x24], ecx
mov eax, dword [esp + 0x14]
test eax, eax
jle 0x49d97e
lea ecx, [edi + 0x330]
mov dword [esp + 0x20], ecx
mov dword [esp + 0x3c], eax
mov edx, dword [esp + 0x20]
movzx eax, byte [edx - 0x14]
mov ecx, dword [ebp + 0xc]
lea eax, [eax + eax*4]
shl eax, 4
mov ebx, dword [eax + ecx + 0x18]
mov edx, dword [ebx + 0x48]
lea eax, [eax + ecx + 8]
mov esi, 0xfff0bdc0
mov dword [esp + 0x24], eax
mov dword [esp + 0x40], ebx
mov dword [esp + 0x28], esi
test edx, edx
je 0x49d63d
mov eax, dword [esp + 0x18]
mov ecx, dword [eax + 0x14]
xor esi, esi
mov dword [esp + 0x28], esi
test ecx, ecx
jle 0x49d63d
mov eax, dword [eax + 0x10]
add eax, 0xc
cmp dword [eax], edx
je 0x49d639
inc esi
add eax, 0x10
cmp esi, ecx
jl 0x49d62d
mov dword [esp + 0x28], esi
test byte [ebx + 0x24], 2
mov ecx, dword [esp + 0x20]
mov edx, dword [ecx]
mov dword [esp + 0x34], edx
jne 0x49d7ff
cmp dword [ebx + 0xc], 0
jne 0x49d7ff
mov eax, edx
mov eax, dword [eax + 0x24]
test eax, 0x400
je 0x49d6f3
mov ebx, dword [ebx + 0x40]
test ebx, ebx
je 0x49d681
mov eax, dword [esp + 0x18]
cmp dword [ebx], eax
je 0x49d681
mov ebx, dword [ebx + 0x18]
test ebx, ebx
jne 0x49d676
mov ecx, dword [esp + 0x24]
mov eax, dword [ecx + 0x30]
mov esi, dword [esp + 0x1c]
push 0
push 0
push eax
push 0x9c
push esi
call fcn.00451be0
mov edx, dword [esi]
add esp, 0x14
cmp byte [edx + 0x45], 0
jne 0x49d7ff
test eax, eax
jge 0x49d6b6
mov eax, dword [esi + 0x88]
dec eax
mov ecx, dword [esi + 0x58]
lea eax, [eax + eax*4]
cmp byte [ecx + eax*4 + 1], 0
lea eax, [ecx + eax*4]
je 0x49d6dc
push ebx
push eax
mov eax, 0xfffffff4
mov ecx, esi
call fcn.00452630
add esp, 8
jmp 0x49d7ff
test ebx, ebx
je 0x49d7ff
mov dword [eax + 0x10], ebx
mov byte [eax + 1], 0xf4
inc dword [ebx + 0xc]
jmp 0x49d7ff
cmp dword [ebx + 0x38], 0
jne 0x49d7ff
test al, 0x40
jne 0x49d7e9
cmp word [esp + 0x38], 0
jne 0x49d7e9
cmp byte [edi + 0x31], 0
mov eax, 0x68
je 0x49d72b
mov edx, dword [esp + 0x24]
mov ecx, dword [edx + 0x30]
mov eax, 0x69
mov dword [edi + 0x18], ecx
mov edx, dword [esp + 0x24]
mov ecx, dword [ebp + 8]
push eax
mov eax, dword [edx + 0x30]
push esi
push eax
push ecx
mov eax, ebx
call fcn.0047b2b0
add esp, 0x10
cmp byte [edi + 0x31], 0
jne 0x49d7c8
cmp word [ebx + 0x2a], 0x40
jge 0x49d7c8
test byte [ebx + 0x24], 0x20
jne 0x49d7c8
mov eax, dword [esp + 0x24]
mov ecx, dword [eax + 0x40]
mov edx, dword [eax + 0x44]
mov esi, ecx
xor eax, eax
or esi, edx
je 0x49d77d
lea esp, [esp]
shrd ecx, edx, 1
shr edx, 1
mov esi, ecx
inc eax
or esi, edx
jne 0x49d770
mov esi, dword [esp + 0x1c]
mov ecx, dword [esi]
cmp byte [ecx + 0x45], 0
je 0x49d795
mov edx, 0xfffffffd
call fcn.004524d0
jmp 0x49d7cc
mov ecx, dword [esi + 0x88]
dec ecx
lea edx, [ecx + ecx*4]
mov ecx, dword [esi + 0x58]
cmp byte [ecx + edx*4 + 1], 0
lea ecx, [ecx + edx*4]
je 0x49d7bf
push eax
push ecx
mov eax, 0xfffffffd
mov ecx, esi
call fcn.00452630
add esp, 8
jmp 0x49d7cc
mov dword [ecx + 0x10], eax
mov byte [ecx + 1], 0xfd
jmp 0x49d7cc
mov esi, dword [esp + 0x1c]
mov eax, dword [esi + 0x88]
test eax, eax
jle 0x49d7ff
movzx dx, byte [esp + 0x12]
mov ecx, dword [esi + 0x58]
lea eax, [eax + eax*4]
mov word [ecx + eax*4 - 0x12], dx
jmp 0x49d7ff
mov edx, dword [ebx]
mov eax, dword [ebx + 0x1c]
push edx
push 0
push eax
mov eax, dword [ebp + 8]
mov ebx, esi
call fcn.0046e470
add esp, 0xc
mov ecx, dword [esp + 0x34]
test dword [ecx + 0x24], 0x200
je 0x49d939
mov eax, dword [esp + 0x40]
test byte [eax + 0x24], 0x20
mov edx, ecx
mov esi, dword [edx + 0x20]
mov ecx, 0x68
je 0x49d842
mov edx, dword [esi + 0x38]
and dl, 3
cmp dl, 2
jne 0x49d842
cmp word [esp + 0x38], 0
je 0x49d842
mov eax, dword [esp + 0x20]
mov eax, dword [eax - 0x3c]
xor ecx, ecx
jmp 0x49d895
cmp byte [edi + 0x31], 0
mov eax, dword [ebp + 0x20]
je 0x49d876
mov ecx, dword [esp + 0x24]
mov edx, dword [ecx + 0x10]
mov ecx, dword [edx + 8]
test ecx, ecx
je 0x49d86c
lea esp, [esp]
cmp ecx, esi
je 0x49d86c
mov ecx, dword [ecx + 0x14]
inc eax
test ecx, ecx
jne 0x49d860
mov ecx, 0x69
mov dword [edi + 0x1c], eax
jmp 0x49d895
test eax, eax
je 0x49d889
cmp word [esp + 0x38], 0
je 0x49d889
mov ecx, 0x67
jmp 0x49d895
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x28]
lea ebx, [eax + 1]
mov dword [edx + 0x28], ebx
mov edx, dword [esp + 0x20]
mov dword [edx - 0x38], eax
test ecx, ecx
je 0x49d939
mov edx, dword [esp + 0x28]
push edx
mov edx, dword [esi + 0x2c]
push edx
push eax
mov eax, dword [esp + 0x28]
push ecx
push eax
call fcn.00451be0
mov ecx, dword [ebp + 8]
mov ebx, dword [ecx + 8]
add esp, 0x14
mov edx, ecx
push esi
push edx
call fcn.00474580
add esp, 8
test eax, eax
je 0x49d8fd
mov ecx, dword [ebx]
cmp byte [ecx + 0x45], 0
je 0x49d8e6
mov edx, 0xfffffff7
call fcn.004524d0
jmp 0x49d8fd
mov ecx, dword [ebx + 0x88]
mov edx, dword [ebx + 0x58]
lea ecx, [ecx + ecx*4]
lea ecx, [edx + ecx*4 - 0x14]
mov byte [ecx + 1], 0xf7
mov dword [ecx + 0x10], eax
mov eax, dword [esp + 0x34]
mov eax, dword [eax + 0x24]
test al, 0xf
je 0x49d939
test eax, 0x8002
jne 0x49d939
test byte [edi + 0x2c], 1
jne 0x49d939
cmp byte [edi + 0x33], 2
je 0x49d939
mov ecx, dword [esp + 0x1c]
mov eax, dword [ecx + 0x88]
test eax, eax
jle 0x49d939
lea edx, [eax + eax*4]
mov eax, dword [ecx + 0x58]
mov ecx, 2
mov word [eax + edx*4 - 0x12], cx
mov ecx, dword [esp + 0x28]
test ecx, ecx
jl 0x49d96a
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x78]
test eax, eax
jne 0x49d94d
mov eax, edx
mov ebx, dword [eax + 0x5c]
mov edx, 1
shl edx, cl
test ebx, edx
jne 0x49d96a
or edx, ebx
mov dword [eax + 0x5c], edx
cmp ecx, 1
jne 0x49d96a
call fcn.00473d70
add dword [esp + 0x20], 0x50
sub dword [esp + 0x3c], 1
jne 0x49d5e5
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x1c]
mov ecx, dword [edx + 0x88]
mov edx, dword [esp + 0x18]
mov dword [edi + 0x38], ecx
cmp byte [edx + 0x45], 0
jne 0x49d41a
or ecx, 0xffffffff
xor esi, esi
mov dword [esp + 0x40], ecx
mov dword [esp + 0x44], ecx
test eax, eax
jle 0x49da52
lea ebx, [edi + 0x31c]
mov eax, dword [ebx + 0x14]
test dword [eax + 0x24], 0x4000
je 0x49d9fd
mov edx, dword [esp + 0x44]
mov eax, dword [esp + 0x40]
lea ecx, [ebx - 0x2c]
push ecx
push edx
mov edx, dword [ebp + 0xc]
push eax
movzx eax, byte [ebx]
lea ecx, [eax + eax*4]
shl ecx, 4
lea eax, [ecx + edx + 8]
mov ecx, dword [ebp + 8]
push eax
lea eax, [edi + 0x50]
push eax
push ecx
call fcn.00498720
mov edx, dword [esp + 0x30]
add esp, 0x18
cmp byte [edx + 0x45], 0
jne 0x49d41a
movzx ecx, byte [ebx]
mov eax, dword [ebp + 0x1c]
push eax
mov eax, dword [ebp + 0xc]
push ecx
mov ecx, dword [ebp + 8]
push esi
lea edx, [ebx - 0x2c]
push eax
call fcn.00492f20
mov ecx, dword [esp + 0x2c]
mov edx, dword [ecx + 0x88]
mov eax, dword [esp + 0x54]
mov ecx, dword [esp + 0x50]
push eax
push ecx
push esi
push edi
mov dword [ebx - 0xc], edx
call fcn.00494120
mov dword [esp + 0x64], edx
mov edx, dword [ebx - 0x14]
inc esi
add esp, 0x20
add ebx, 0x50
cmp esi, dword [esp + 0x14]
mov dword [esp + 0x40], eax
mov dword [edi + 0x20], edx
jl 0x49d9b4
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret