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

Disassembly:
sub esp, 0x58
mov eax, dword [esp + 0x5c]
push ebx
mov ebx, dword [esp + 0x6c]
push esi
mov ecx, dword [eax + 8]
mov esi, dword [eax]
mov dword [esp + 0x10], ecx
xor ecx, ecx
mov byte [esp + 0xb], 0
mov dword [esp + 0x14], esi
mov dword [esp + 0x44], ecx
mov dword [esp + 0x48], ecx
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x50], ecx
mov dword [esp + 0x54], ecx
mov dword [esp + 0x58], ecx
mov dword [esp + 0x5c], ecx
test ebx, ebx
je 0x4e2e74
xor eax, eax
cmp dword [ebx], 0x40
setge al
dec eax
and ebx, eax
mov eax, dword [esp + 0x64]
mov dword [esp + 0x70], ebx
mov edx, dword [esp + 0x78]
mov dword [esp + 0x4c], ebx
test byte [esi + 0x4c], 0x10
je 0x4e2e88
and edx, 0xfeff
mov ecx, dword [esp + 0x68]
mov dword [esp + 0x18], edx
mov ecx, dword [ecx]
mov dword [esp + 0xc], ecx
cmp ecx, 0x40
jle 0x4e2eb3
push 0x40
push str.at_most__d_tables_in_a_join
push eax
call fcn.004af3d0
add esp, 0xc
xor eax, eax
pop esi
pop ebx
add esp, 0x58
ret
mov eax, edx
and eax, 0x20
mov dword [esp + 0x24], eax
je 0x4e2ec7
mov ecx, 1
mov dword [esp + 0xc], ecx
imul eax, ecx, 0x58
push ebp
push edi
push 0
mov dword [esp + 0x44], eax
lea edi, [eax + 0x2f7]
and edi, 0xfffffff8
lea eax, [edi + 0x48]
push eax
push esi
call fcn.004ad310
add esp, 0xc
mov ebp, eax
cmp byte [esi + 0x51], 0
mov dword [esp + 0x3c], ebp
je 0x4e2f10
test ebp, ebp
je 0x4e37f1
push ebp
push esi
call fcn.004ad230
add esp, 8
xor eax, eax
pop edi
pop ebp
pop esi
pop ebx
add esp, 0x58
ret
mov ecx, dword [esp + 0x6c]
mov eax, dword [esp + 0x70]
mov esi, dword [esp + 0x74]
mov dword [ebp + 4], eax
mov eax, dword [esp + 0x7c]
mov dword [ebp + 0xc], eax
mov eax, dword [esp + 0x14]
mov dword [ebp], ecx
mov dword [ebp + 8], ebx
mov dword [ebp + 0x10], esi
mov dword [ebp + 0x18], 0xffffffff
mov dword [ebp + 0x14], 0xffffffff
mov byte [ebp + 0x2c], al
mov eax, dword [ecx + 0x38]
dec eax
mov dword [ecx + 0x38], eax
mov dword [ebp + 0x1c], eax
mov dword [ebp + 0x20], eax
mov eax, dword [esp + 0x20]
mov word [ebp + 0x28], ax
mov eax, dword [esp + 0x84]
mov word [ebp + 0x2a], ax
mov eax, dword [ecx + 0x88]
lea ecx, [ebp + 0x2f0]
mov dword [ebp + 0x24], eax
xor eax, eax
mov dword [ebp + 0x2d], eax
mov dword [ebp + 0x31], eax
mov dword [ebp + 0x35], eax
mov dword [ebp + 0x39], eax
mov dword [ebp + 0x3d], eax
mov dword [ebp + 0x41], eax
mov dword [ebp + 0x45], eax
mov dword [ebp + 0x49], eax
mov word [ebp + 0x4d], ax
mov byte [ebp + 0x4f], al
mov eax, dword [esp + 0x40]
add eax, 0x48
push eax
push 0
push ecx
call sub.MSVCRT.dll_memset
mov dword [esp + 0x58], ebp
lea ecx, [edi + ebp]
mov dword [esp + 0x64], ecx
lea eax, [ebp + 0x50]
mov dword [esp + 0x5c], eax
lea edi, [ebp + 0x50]
mov dword [esp + 0x40], eax
lea edx, [ebp + 0x1e8]
lea eax, [ecx + 0x38]
mov dword [ecx + 0x24], 0
mov dword [ecx + 0x30], eax
xor eax, eax
mov word [ecx + 0x28], ax
mov eax, 3
mov word [ecx + 0x2c], ax
lea eax, [edi + 0x18]
mov dword [edx + 4], 0
push 0x2c
push esi
push edi
mov dword [esp + 0x58], edx
mov dword [edi], ebp
mov byte [edi + 9], 0
mov dword [edi + 4], 0
mov dword [edi + 0xc], 0
mov dword [edi + 0x10], 8
mov dword [edi + 0x14], eax
call fcn.004e6890
add esp, 0x18
cmp dword [esp + 0x14], 0
jne 0x4e304f
test ebx, ebx
je 0x4e3027
mov al, byte [ebx]
mov byte [ebp + 0x2d], al
test dword [esp + 0x20], 0x100
je 0x4e3035
mov byte [ebp + 0x2f], 1
mov ebx, dword [esp + 0x6c]
push str.SCAN_CONSTANT_ROW
push 0
push ebx
call fcn.004dc4f0
mov eax, dword [esp + 0x7c]
add esp, 0xc
jmp 0x4e308f
mov esi, dword [esp + 0x70]
xor edi, edi
mov ebp, dword [esp + 0x40]
add esi, 8
mov ebx, dword [esp + 0x6c]
mov ecx, dword [ebp + 4]
push dword [esp + 0x34]
mov eax, dword [esi + 0x2c]
push esi
mov dword [ebp + ecx*4 + 8], eax
inc dword [ebp + 4]
push ebx
call fcn.004e68f0
mov eax, dword [esp + 0x7c]
inc edi
add esp, 0xc
add esi, 0x48
cmp edi, dword [eax]
jl 0x4e3060
mov ebp, dword [esp + 0x3c]
mov edi, dword [esp + 0x34]
mov esi, dword [edi + 0xc]
dec esi
js 0x4e30a7
push esi
push edi
push eax
call fcn.00477fe0
mov eax, dword [esp + 0x7c]
add esp, 0xc
dec esi
jns 0x4e3095
mov edi, dword [esp + 0x1c]
cmp byte [edi + 0x51], 0
jne 0x4e37db
mov ecx, dword [esp + 0x50]
xor ebx, ebx
cmp dword [ecx + 0xc], ebx
jle 0x4e3112
xor edi, edi
mov esi, dword [ecx + 0x14]
add esi, edi
test byte [esi + 0xa], 2
jne 0x4e3105
mov eax, dword [esi + 0x28]
or eax, dword [esi + 0x2c]
jne 0x4e3105
cmp dword [esp + 0x14], eax
je 0x4e30e9
push dword [esi]
call fcn.00479f80
add esp, 4
test eax, eax
je 0x4e3101
push 0x10
push dword [ebp + 0x20]
push dword [esi]
push dword [esp + 0x78]
call fcn.004b2d40
add esp, 0x10
or word [esi + 0xa], 4
mov ecx, dword [esp + 0x50]
inc ebx
add edi, 0x30
cmp ebx, dword [ecx + 0xc]
jl 0x4e30c2
mov edi, dword [esp + 0x1c]
mov eax, dword [esp + 0x20]
mov ebx, dword [esp + 0x7c]
and eax, 0x100
mov esi, dword [esp + 0x6c]
mov dword [esp + 0x44], eax
je 0x4e3158
push ebx
lea eax, [ebp + 0x50]
push eax
push dword [esp + 0x78]
push esi
call fcn.00491db0
add esp, 0x10
test eax, eax
je 0x4e3145
mov byte [ebp + 0x2f], 1
jmp 0x4e3158
cmp dword [esp + 0x78], 0
jne 0x4e3158
mov eax, pe_nt_image_headers32
mov dword [ebp + 8], ebx
or word [ebp + 0x28], ax
cmp dword [esp + 0x14], 1
jne 0x4e3170
lea eax, [esp + 0x4c]
push eax
call fcn.004f8410
add esp, 4
test eax, eax
jne 0x4e31bc
lea eax, [esp + 0x4c]
push eax
call fcn.004f45f0
add esp, 4
test eax, eax
jne 0x4e37d7
push eax
push ebp
call fcn.004f7360
add esp, 8
cmp byte [edi + 0x51], 0
jne 0x4e37d7
cmp dword [ebp + 8], 0
je 0x4e31c2
mov ax, word [ebp + 0x34]
inc ax
movzx eax, ax
push eax
push ebp
call fcn.004f7360
add esp, 8
cmp byte [edi + 0x51], 0
jne 0x4e37d7
cmp dword [ebp + 8], 0
jne 0x4e31dd
mov eax, dword [edi + 0x20]
and eax, 0x1000
or eax, 0
je 0x4e31dd
mov dword [ebp + 0x48], 0xffffffff
mov dword [ebp + 0x4c], 0xffffffff
cmp dword [esi + 0x24], 0
jne 0x4e37d7
cmp byte [edi + 0x51], 0
jne 0x4e37d7
cmp byte [ebp + 0x2c], 2
mov dword [esp + 0x24], 0xffffffff
mov dword [esp + 0x28], 0xffffffff
jb 0x4e33b0
test ebx, ebx
je 0x4e33b0
mov eax, 0x100
test word [edi + 0x4c], ax
jne 0x4e33b0
push ebx
lea esi, [ebp + 0x1e8]
push esi
call fcn.004e6560
mov ecx, dword [esp + 0x5c]
add esp, 8
mov dword [esp + 0x38], edx
mov edi, eax
mov dword [esp + 0x78], edi
mov ebx, edx
test ecx, ecx
je 0x4e325c
push ecx
push esi
call fcn.004e6560
or edi, eax
add esp, 8
or ebx, edx
mov dword [esp + 0x78], edi
mov dword [esp + 0x38], ebx
movzx esi, byte [ebp + 0x2c]
dec esi
mov dword [esp + 0x30], esi
cmp esi, 1
jl 0x4e33b0
imul eax, esi, 0x58
add eax, 0x348
add eax, ebp
mov dword [esp + 0x34], eax
lea esp, [esp]
mov ebx, dword [eax - 0x10]
movzx eax, byte [ebx + 0x10]
lea ecx, [eax + eax*8]
mov eax, dword [ebp + 4]
lea eax, [eax + ecx*8]
add eax, 8
mov dword [esp + 0x48], eax
test byte [eax + 0x24], 8
je 0x4e3397
cmp word [esp + 0x44], 0
jne 0x4e32b6
test dword [ebx + 0x24], 0x1000
je 0x4e3397
mov eax, dword [ebx + 8]
mov ecx, eax
mov edx, dword [ebx + 0xc]
and ecx, edi
mov dword [esp + 0x3c], eax
mov eax, edx
and eax, dword [esp + 0x38]
or ecx, eax
mov dword [esp + 0x40], edx
jne 0x4e3397
mov eax, dword [esp + 0x50]
mov edx, dword [eax + 0x14]
mov esi, edx
mov eax, dword [eax + 0xc]
lea edi, [eax + eax*2]
shl edi, 4
add edi, edx
cmp esi, edi
jae 0x4e3324
mov edi, edi
mov ecx, dword [esi + 0x28]
mov eax, dword [esi + 0x2c]
and ecx, dword [esp + 0x3c]
and eax, dword [esp + 0x40]
or ecx, eax
je 0x4e3317
mov eax, dword [esi]
test byte [eax + 4], 1
je 0x4e3320
mov ecx, dword [esp + 0x48]
movsx eax, word [eax + 0x24]
cmp eax, dword [ecx + 0x2c]
jne 0x4e3320
add esi, 0x30
cmp esi, edi
jb 0x4e32f0
jmp 0x4e3324
cmp esi, edi
jb 0x4e338f
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x40]
not eax
and dword [esp + 0x24], eax
not ecx
and dword [esp + 0x28], ecx
cmp edx, edi
jae 0x4e335c
lea esp, [esp]
mov ecx, dword [edx + 0x28]
mov eax, dword [edx + 0x2c]
and ecx, dword [ebx + 8]
and eax, dword [ebx + 0xc]
or ecx, eax
je 0x4e3355
or word [edx + 0xa], 4
add edx, 0x30
cmp edx, edi
jb 0x4e3340
movzx ecx, byte [ebp + 0x2c]
mov esi, dword [esp + 0x30]
lea eax, [ecx - 1]
cmp esi, eax
je 0x4e3386
sub ecx, esi
imul eax, ecx, 0x58
sub eax, 0x58
push eax
mov eax, dword [esp + 0x38]
push eax
add eax, 0xffffffa8
push eax
call dword [sym.imp.MSVCRT.dll_memmove]
add esp, 0xc
dec byte [ebp + 0x2c]
dec dword [esp + 0x14]
jmp 0x4e3393
mov esi, dword [esp + 0x30]
mov edi, dword [esp + 0x78]
mov eax, dword [esp + 0x34]
dec esi
sub eax, 0x58
mov dword [esp + 0x30], esi
mov dword [esp + 0x34], eax
cmp esi, 1
jge 0x4e3280
mov ecx, dword [ebp]
movsx eax, word [ebp + 0x34]
mov ebx, dword [esp + 0x20]
add dword [ecx + 0x88], eax
test bl, 4
je 0x4e342b
mov eax, dword [ebp + 0x338]
mov ecx, dword [eax + 0x24]
mov edx, ecx
shr edx, 0xc
and edx, 1
jne 0x4e33f7
test bl, 8
je 0x4e342b
mov eax, dword [esp + 0x70]
mov eax, dword [eax + 0x18]
cmp dword [eax + 0x38], edx
jne 0x4e342b
test ecx, 0x2000
je 0x4e33f7
test bl, 0x10
je 0x4e342b
test edx, edx
mov edx, dword [esp + 0x70]
sete al
inc al
mov byte [ebp + 0x2e], al
mov eax, dword [edx + 0x18]
test byte [eax + 0x24], 0x80
jne 0x4e342f
test cl, 0x40
je 0x4e342f
test bl, 8
je 0x4e341d
mov byte [esp + 0x13], 8
mov eax, dword [ebp + 0x338]
and ecx, 0xffffffbf
mov dword [eax + 0x24], ecx
jmp 0x4e342f
mov edx, dword [esp + 0x70]
mov ecx, dword [esp + 0x14]
test ecx, ecx
jle 0x4e3709
lea ebx, [ebp + 0x338]
mov dword [esp + 0x40], ecx
mov dword [esp + 0x78], ebx
lea esp, [esp]
movzx eax, byte [ebx - 0x14]
mov edi, 0xffff8000
lea esi, [eax*8 + 1]
add esi, eax
mov ebx, dword [edx + esi*8 + 0x10]
lea esi, [edx + esi*8]
mov edx, dword [esp + 0x1c]
mov dword [esp + 0x48], esi
mov ecx, dword [ebx + 0x48]
test ecx, ecx
je 0x4e348c
mov eax, dword [edx + 0x10]
xor edi, edi
add eax, 0xc
cmp dword [eax], ecx
je 0x4e348c
lea eax, [eax + 0x10]
inc edi
cmp dword [eax], ecx
jne 0x4e3484
test byte [ebx + 0x24], 2
mov eax, dword [esp + 0x78]
mov ecx, dword [eax]
mov dword [esp + 0x30], ecx
jne 0x4e35d3
cmp dword [ebx + 0xc], 0
jne 0x4e35d3
mov eax, dword [ecx + 0x24]
test eax, 0x400
je 0x4e34de
push 0xfffffffffffffff4
push ebx
push edx
call fcn.004bec90
add esp, 8
push eax
push 0
push 0
push dword [esi + 0x2c]
push 0xa5
push dword [esp + 0x30]
call fcn.004d4b20
add esp, 0x1c
jmp 0x4e35cf
cmp dword [ebx + 0x38], 0
jne 0x4e35d3
test al, 0x40
jne 0x4e35bb
cmp word [esp + 0x2c], 0
jne 0x4e35bb
cmp byte [ebp + 0x2e], 0
mov ecx, 0x60
je 0x4e3512
mov eax, dword [esi + 0x2c]
mov ecx, 0x61
mov dword [ebp + 0x14], eax
push ecx
push ebx
push edi
push dword [esi + 0x2c]
push dword [esp + 0x7c]
call fcn.004c38e0
add esp, 0x14
cmp byte [ebp + 0x2e], 0
jne 0x4e35a5
cmp word [ebx + 0x2a], 0x40
jge 0x4e35a5
test byte [ebx + 0x24], 0xe0
jne 0x4e35a5
mov edx, dword [esi + 0x38]
mov ecx, edx
mov eax, dword [esi + 0x3c]
xor esi, esi
or ecx, eax
je 0x4e355d
lea esp, [esp]
shrd edx, eax, 1
inc esi
shr eax, 1
mov ecx, edx
or ecx, eax
jne 0x4e3550
mov ecx, dword [esp + 0x18]
mov eax, dword [ecx]
cmp byte [eax + 0x51], 0
je 0x4e3577
push esi
push 0xfffffffffffffffd
push eax
call fcn.0047d1f0
add esp, 0xc
jmp 0x4e35a5
mov eax, dword [ecx + 0x6c]
mov edx, dword [esp + 0x18]
dec eax
lea ecx, [eax + eax*4]
mov eax, dword [edx + 0x68]
cmp byte [eax + ecx*4 + 1], 0
lea eax, [eax + ecx*4]
je 0x4e359e
push 0xfffffffffffffffd
push esi
push eax
push edx
call fcn.004ed1b0
add esp, 0x10
jmp 0x4e35a5
mov dword [eax + 0x10], esi
mov byte [eax + 1], 0xfd
mov al, byte [esp + 0x13]
movzx eax, al
push eax
push dword [esp + 0x1c]
call fcn.004d5030
add esp, 8
jmp 0x4e35cf
push dword [ebx]
push 0
push dword [ebx + 0x1c]
push edi
push dword [esp + 0x7c]
call fcn.004d05b0
add esp, 0x14
mov ecx, dword [esp + 0x30]
test dword [ecx + 0x24], 0x200
je 0x4e36b8
test byte [ebx + 0x24], 0x80
mov edx, 0x60
mov esi, dword [ecx + 0x20]
je 0x4e360f
mov eax, dword [esi + 0x38]
and al, 3
cmp al, 2
mov eax, dword [esp + 0x2c]
jne 0x4e3613
test ax, ax
je 0x4e3613
mov ebx, dword [esp + 0x78]
mov eax, dword [ebx - 0x44]
mov dword [ebx - 0x40], eax
jmp 0x4e36bc
mov eax, dword [esp + 0x2c]
cmp byte [ebp + 0x2e], 0
mov ecx, dword [esp + 0x84]
je 0x4e3646
mov eax, dword [esp + 0x48]
mov eax, dword [eax + 0x10]
mov eax, dword [eax + 8]
test eax, eax
je 0x4e363c
mov edi, edi
cmp eax, esi
je 0x4e363c
mov eax, dword [eax + 0x14]
inc ecx
test eax, eax
jne 0x4e3630
mov edx, 0x61
mov dword [ebp + 0x18], ecx
jmp 0x4e3663
test ecx, ecx
je 0x4e3656
test ax, ax
je 0x4e3656
mov edx, 0x5f
jmp 0x4e3663
mov ebx, dword [esp + 0x6c]
mov ecx, dword [ebx + 0x28]
lea eax, [ecx + 1]
mov dword [ebx + 0x28], eax
mov ebx, dword [esp + 0x78]
push edi
mov dword [ebx - 0x40], ecx
push dword [esi + 0x2c]
push ecx
push edx
push dword [esp + 0x28]
call fcn.004d4ac0
push esi
mov esi, dword [esp + 0x84]
push esi
call fcn.004dfb70
mov eax, dword [esp + 0x4c]
add esp, 0x1c
mov eax, dword [eax + 0x24]
test al, 0xf
je 0x4e36c0
test eax, 0x88002
jne 0x4e36c0
test byte [ebp + 0x28], 1
jne 0x4e36c0
cmp byte [ebp + 0x2f], 2
je 0x4e36c0
push 2
push dword [esp + 0x1c]
call fcn.004d5030
add esp, 8
jmp 0x4e36c0
mov ebx, dword [esp + 0x78]
mov esi, dword [esp + 0x6c]
test edi, edi
js 0x4e36f0
mov edx, dword [esi + 0x74]
test edx, edx
jne 0x4e36cd
mov edx, esi
mov esi, dword [edx + 0x54]
mov eax, 1
mov ecx, edi
shl eax, cl
test esi, eax
jne 0x4e36f0
or eax, esi
mov dword [edx + 0x54], eax
cmp edi, 1
jne 0x4e36f0
push edx
call fcn.004c3c20
add esp, 4
mov edx, dword [esp + 0x70]
add ebx, 0x58
dec dword [esp + 0x40]
mov dword [esp + 0x78], ebx
jne 0x4e3450
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
mov esi, dword [esp + 0x1c]
mov eax, dword [eax + 0x6c]
mov dword [ebp + 0x38], eax
cmp byte [esi + 0x51], 0
jne 0x4e37d7
xor ebx, ebx
test ecx, ecx
jle 0x4e37cd
lea edi, [ebp + 0x324]
mov eax, dword [edi + 0x14]
test dword [eax + 0x24], 0x4000
je 0x4e3773
mov ecx, dword [esp + 0x70]
lea eax, [edi - 0x34]
push eax
movzx eax, byte [edi]
push dword [esp + 0x2c]
push dword [esp + 0x2c]
lea eax, [eax + eax*8]
lea eax, [eax + 1]
lea eax, [ecx + eax*8]
push eax
lea eax, [ebp + 0x50]
push eax
push dword [esp + 0x80]
call fcn.004745e0
add esp, 0x18
cmp byte [esi + 0x51], 0
jne 0x4e37d7
push dword [esp + 0x20]
lea esi, [edi - 0x34]
push esi
push dword [esp + 0x78]
push dword [esp + 0x78]
call fcn.004e6260
push dword [esp + 0x38]
mov ecx, dword [esp + 0x2c]
push dword [esp + 0x38]
push esi
mov eax, dword [ecx + 0x6c]
push ebx
push ebp
push ecx
push dword [esp + 0x94]
mov dword [edi - 0x14], eax
call fcn.004e3990
mov ecx, dword [edi - 0x1c]
inc ebx
mov esi, dword [esp + 0x48]
add esp, 0x2c
add edi, 0x58
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], edx
mov dword [ebp + 0x1c], ecx
cmp ebx, dword [esp + 0x14]
jl 0x4e3731
pop edi
mov eax, ebp
pop ebp
pop esi
pop ebx
add esp, 0x58
ret
mov ebx, dword [esp + 0x6c]
mov eax, dword [ebp + 0x24]
push ebp
push dword [esp + 0x20]
mov dword [ebx + 0x88], eax
call fcn.004f4130
add esp, 8
pop edi
pop ebp
pop esi
xor eax, eax
pop ebx
add esp, 0x58
ret