Function at 0x477900
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 0x477949
cmp dword [eax], 0x40
jl 0x477949
xor eax, eax
mov dword [esp + 0x68], eax
mov dword [esp + 0x48], eax
test byte [ecx + 0x44], 0x10
je 0x47795b
and dword [esp + 0x70], 0xfeff
mov eax, dword [esp + 0x60]
mov edx, dword [eax]
cmp edx, 0x40
jle 0x477980
push 0x40
push str.at_most__d_tables_in_a_join
mov esi, ebx
call fcn.0043e2f0
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 0x477999
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.0042a500
mov ecx, dword [esp + 0x1c]
add esp, 8
cmp byte [ecx + 0x49], 0
mov ebp, eax
je 0x4779dc
call fcn.0041d1d0
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.004330b0
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 + 0x84]
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.00494ec0
mov eax, dword [esp + 0x38]
mov dword [esp + 0x50], ebp
add eax, ebp
mov dword [esp + 0x5c], eax
lea esi, [ebp + 0x50]
mov dword [esp + 0x54], esi
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 dword [esi + 4], ecx
mov dword [esi + 0xc], ecx
mov dword [esi + 0x10], 8
mov dword [esi + 0x14], edx
call fcn.00430d90
add esp, 0x18
cmp dword [esp + 0x18], 0
jne 0x477af6
mov eax, dword [esp + 0x6c]
test eax, eax
je 0x477ad6
mov cl, byte [eax]
mov byte [ebp + 0x2f], cl
test dword [esp + 0x74], 0x100
je 0x477ae4
mov byte [ebp + 0x33], 1
push str.SCAN_CONSTANT_ROW
push 0
push ebx
call fcn.0043fd70
add esp, 0xc
jmp 0x477b43
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.00449ca0
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 0x477b10
mov ebx, dword [esi + 0xc]
sub ebx, 1
js 0x477b64
jmp 0x477b50
mov edx, dword [esp + 0x64]
push ebx
push esi
push edx
call fcn.00456730
add esp, 0xc
sub ebx, 1
jns 0x477b50
mov eax, dword [esp + 0x14]
cmp byte [eax + 0x49], 0
jne 0x478303
mov eax, dword [esp + 0x48]
xor ebx, ebx
cmp dword [eax + 0xc], ebx
jle 0x477bd1
mov dword [esp + 0x24], ebx
mov esi, dword [eax + 0x14]
add esi, dword [esp + 0x24]
test byte [esi + 0xa], 2
jne 0x477bc2
mov ecx, dword [esi + 0x28]
or ecx, dword [esi + 0x2c]
jne 0x477bc2
cmp dword [esp + 0x18], ecx
je 0x477ba7
mov ecx, dword [esi]
call fcn.004316f0
test eax, eax
je 0x477bc2
mov edx, dword [ebp + 0x24]
mov eax, dword [esi]
mov ecx, dword [esp + 0x60]
push 0x10
push edx
push eax
push ecx
call fcn.0047e890
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 0x477b81
mov ebx, dword [esp + 0x74]
mov esi, dword [esp + 0x70]
mov eax, ebx
and eax, 0x100
mov dword [esp + 0x2c], eax
je 0x477c19
mov edx, dword [esp + 0x60]
push esi
lea eax, [ebp + 0x50]
push eax
mov eax, dword [esp + 0x6c]
push edx
call fcn.00457660
add esp, 0xc
test eax, eax
je 0x477c06
mov byte [ebp + 0x33], 1
jmp 0x477c19
cmp dword [esp + 0x6c], 0
jne 0x477c19
mov eax, 0x80
or word [ebp + 0x2c], ax
mov dword [ebp + 8], esi
cmp dword [esp + 0x18], 1
jne 0x477c2d
lea ecx, [esp + 0x44]
call fcn.00459f50
test eax, eax
jne 0x477c81
lea ecx, [esp + 0x44]
push ecx
call fcn.00458af0
add esp, 4
test eax, eax
jne 0x478303
push eax
push ebp
call fcn.004595b0
mov edx, dword [esp + 0x1c]
add esp, 8
cmp byte [edx + 0x49], 0
jne 0x478303
cmp dword [ebp + 8], 0
je 0x477c87
mov ax, word [ebp + 0x48]
inc ax
movzx ecx, ax
push ecx
push ebp
call fcn.004595b0
mov edx, dword [esp + 0x1c]
add esp, 8
cmp byte [edx + 0x49], 0
jne 0x478303
cmp dword [ebp + 8], 0
jne 0x477c9f
mov eax, dword [esp + 0x14]
test dword [eax + 0x1c], 0x1000
je 0x477c9f
or eax, 0xffffffff
mov dword [ebp + 0x40], eax
mov dword [ebp + 0x44], eax
jmp 0x477ca2
or eax, 0xffffffff
mov ecx, dword [esp + 0x60]
cmp dword [ecx + 0x24], 0
jne 0x478303
mov edx, dword [esp + 0x14]
cmp byte [edx + 0x49], 0
jne 0x478303
cmp byte [ebp + 0x2e], 2
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
jb 0x477e69
test esi, esi
je 0x477e69
mov eax, 0x100
mov ecx, edx
test word [ecx + 0x44], ax
jne 0x477e69
push esi
push edi
call fcn.00431070
mov dword [esp + 0x44], eax
mov eax, dword [esp + 0x54]
add esp, 8
mov dword [esp + 0x40], edx
test eax, eax
je 0x477d15
push eax
push edi
call fcn.00431070
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 0x477e69
lea edx, [eax + eax*4]
shl edx, 4
lea eax, [edx + ebp + 0x340]
mov dword [esp + 0x20], eax
jmp 0x477d40
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 0x477e4e
cmp word [esp + 0x2c], 0
jne 0x477d7d
test dword [eax + 0x24], 0x1000
je 0x477e4e
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 0x477e4e
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 0x477de0
lea ecx, [ecx]
mov eax, dword [ecx + 0x28]
mov edx, dword [ecx + 0x2c]
and eax, esi
and edx, edi
or eax, edx
je 0x477dd3
mov eax, dword [ecx]
test byte [eax + 4], 1
je 0x477ddc
movsx edx, word [eax + 0x24]
mov eax, dword [esp + 0x30]
cmp edx, dword [eax + 0x2c]
jne 0x477ddc
add ecx, 0x30
cmp ecx, ebx
jb 0x477db0
jmp 0x477de0
cmp ecx, ebx
jb 0x477e4e
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 0x477e1b
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 0x477e14
or word [eax + 0xa], di
add eax, 0x30
cmp eax, ebx
jb 0x477e00
movzx eax, byte [ebp + 0x2e]
mov ecx, dword [esp + 0x24]
lea edx, [eax - 1]
cmp ecx, edx
je 0x477e47
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.00499520
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 0x477d40
mov ebx, dword [esp + 0x74]
movsx ecx, word [ebp + 0x48]
mov eax, dword [ebp]
add dword [eax + 0x84], ecx
test bl, 4
je 0x477ed4
mov esi, dword [ebp + 0x330]
mov ecx, dword [esi + 0x24]
mov eax, ecx
shr eax, 0xc
and eax, 1
jne 0x477ea8
test bl, 8
je 0x477ed4
test ecx, 0x400
jne 0x477ed4
test ecx, 0x2000
je 0x477ea8
test bl, 0x10
je 0x477ed4
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 0x477ed4
test cl, 0x40
je 0x477ed4
test bl, 8
je 0x477ece
mov byte [esp + 0x13], 8
and ecx, 0xffffffbf
mov dword [esi + 0x24], ecx
mov eax, dword [esp + 0x18]
test eax, eax
jle 0x478236
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 0x477f3c
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 0x477f3c
jmp 0x477f30
add ecx, 0x10
inc edx
cmp dword [ecx], eax
jne 0x477f30
mov dword [esp + 0x24], edx
test byte [edi + 0x24], 2
mov eax, dword [esi]
mov dword [esp + 0x6c], eax
jne 0x478106
cmp dword [edi + 0xc], 0
jne 0x478106
mov eax, dword [eax + 0x24]
test eax, 0x400
je 0x477fe7
mov ecx, dword [esp + 0x14]
mov eax, edi
call fcn.00427b20
mov edx, dword [esp + 0x1c]
push 0
mov esi, eax
mov eax, dword [ebx + 0x2c]
push 0
push eax
push 0x9e
push edx
call fcn.00432e70
mov ecx, dword [esp + 0x30]
mov edx, dword [ecx]
add esp, 0x14
cmp byte [edx + 0x49], 0
jne 0x478106
test eax, eax
jge 0x477fa8
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 0x477fd0
push esi
push edx
mov eax, 0xfffffff4
call fcn.0042dcb0
add esp, 8
jmp 0x478106
test esi, esi
je 0x478106
mov dword [ecx + 0x10], esi
mov byte [ecx + 1], 0xf4
inc dword [esi + 0xc]
jmp 0x478106
cmp dword [edi + 0x38], 0
jne 0x478106
test al, 0x40
jne 0x4780f0
cmp word [esp + 0x28], 0
jne 0x4780f0
cmp byte [ebp + 0x31], 0
mov eax, 0x6a
je 0x47801b
mov ecx, dword [ebx + 0x2c]
mov eax, 0x6b
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.0045c060
add esp, 0xc
cmp byte [ebp + 0x31], 0
jne 0x4780dd
cmp word [edi + 0x2a], 0x40
jge 0x4780dd
test byte [edi + 0x24], 0x20
jne 0x4780dd
mov ecx, dword [ebx + 0x38]
mov edx, dword [ebx + 0x3c]
mov esi, ecx
xor eax, eax
or esi, edx
je 0x47806d
lea esp, [esp]
shrd ecx, edx, 1
shr edx, 1
mov esi, ecx
inc eax
or esi, edx
jne 0x478060
mov esi, dword [esp + 0x1c]
mov ecx, dword [esi]
cmp byte [ecx + 0x49], 0
je 0x478092
push 0xfffffffffffffffd
call fcn.0042db50
movzx dx, byte [esp + 0x17]
add esp, 4
mov ecx, esi
call fcn.00422dc0
jmp 0x478106
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 0x4780c7
push eax
push esi
mov eax, 0xfffffffd
call fcn.0042dcb0
movzx dx, byte [esp + 0x1b]
add esp, 8
mov ecx, esi
call fcn.00422dc0
jmp 0x478106
movzx dx, byte [esp + 0x13]
mov dword [ecx + 0x10], eax
mov byte [ecx + 1], 0xfd
mov ecx, esi
call fcn.00422dc0
jmp 0x478106
mov esi, dword [esp + 0x1c]
movzx dx, byte [esp + 0x13]
mov ecx, esi
call fcn.00422dc0
jmp 0x478106
mov eax, dword [edi]
mov ecx, dword [edi + 0x1c]
push eax
mov eax, dword [esp + 0x64]
push 0
push ecx
push edx
call fcn.00434ac0
add esp, 0x10
mov edx, dword [esp + 0x6c]
test dword [edx + 0x24], 0x200
je 0x4781f2
test byte [edi + 0x24], 0x20
mov eax, edx
mov esi, dword [eax + 0x20]
mov ecx, 0x6a
je 0x478145
mov edx, dword [esi + 0x38]
and dl, 3
cmp dl, 2
jne 0x478145
cmp word [esp + 0x28], 0
je 0x478145
mov eax, dword [esp + 0x20]
mov eax, dword [eax - 0x3c]
xor ecx, ecx
jmp 0x478196
cmp byte [ebp + 0x31], 0
mov eax, dword [esp + 0x78]
je 0x478176
mov ecx, dword [ebx + 0x10]
mov ecx, dword [ecx + 8]
test ecx, ecx
je 0x47816c
lea esp, [esp]
cmp ecx, esi
je 0x47816c
mov ecx, dword [ecx + 0x14]
inc eax
test ecx, ecx
jne 0x478160
mov ecx, 0x6b
mov dword [ebp + 0x1c], eax
jmp 0x478196
test eax, eax
je 0x478189
cmp word [esp + 0x28], 0
je 0x478189
mov ecx, 0x69
jmp 0x478196
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 0x4781f2
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.00432e70
mov ecx, esi
mov esi, dword [esp + 0x74]
add esp, 0x14
mov eax, esi
call fcn.0045afc0
mov eax, dword [esp + 0x6c]
mov eax, dword [eax + 0x24]
test al, 0xf
je 0x4781fa
test eax, 0x8002
jne 0x4781fa
test byte [ebp + 0x2c], 1
jne 0x4781fa
cmp byte [ebp + 0x33], 2
je 0x4781fa
mov edx, 2
mov ecx, ebx
call fcn.00422dc0
jmp 0x4781fa
mov edi, dword [esp + 0x24]
mov esi, dword [esp + 0x60]
test edi, edi
jl 0x478226
mov eax, dword [esi + 0x78]
test eax, eax
jne 0x478207
mov eax, esi
mov esi, dword [eax + 0x5c]
mov edx, 1
mov ecx, edi
shl edx, cl
test esi, edx
jne 0x478226
or edx, esi
mov dword [eax + 0x5c], edx
cmp edi, 1
jne 0x478226
call fcn.0046e820
add dword [esp + 0x20], 0x50
sub dword [esp + 0x2c], 1
jne 0x477ef0
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 0x478303
xor ebx, ebx
cmp dword [esp + 0x18], ebx
jle 0x4782f9
lea esi, [ebp + 0x31c]
mov ecx, dword [esi + 0x14]
test dword [ecx + 0x24], 0x4000
je 0x4782a7
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.0045e1b0
mov eax, dword [esp + 0x2c]
add esp, 0x18
cmp byte [eax + 0x49], 0
jne 0x478303
mov ecx, dword [esp + 0x74]
mov edx, dword [esp + 0x64]
mov edi, dword [esp + 0x60]
push ecx
lea ecx, [esi - 0x2c]
call fcn.00448d00
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.00475950
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 0x478263
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 + 0x84], ecx
call fcn.004311d0
add esp, 4
pop ebp
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x4c
ret