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

Disassembly:
sub esp, 0x38
mov eax, dword [esp + 0x40]
mov edx, dword [esp + 0x44]
push ebx
push ebp
mov ebx, dword [eax]
push edi
mov edi, dword [eax + 0x14]
lea edx, [edx + edx*2]
shl edx, 4
mov ecx, dword [ebx]
add edi, edx
mov dword [esp + 0x34], ecx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x40], edx
mov ecx, dword [ecx]
mov eax, dword [edi]
mov dword [esp + 0x18], ecx
mov dword [esp + 0x3c], edi
mov dword [esp + 0x38], eax
test ecx, ecx
je 0x478c05
push 0
push 0x1a0
push ecx
call fcn.004ad310
mov ebp, eax
add esp, 0xc
mov dword [esp + 0xc], ebp
jmp 0x478c6b
cmp dword [0x52e2d8], 0
je 0x478c57
mov eax, dword [0x530c58]
test eax, eax
je 0x478c21
push eax
call dword [0x52e328]
add esp, 4
lea eax, [esp + 0x30]
push eax
push 0x1a0
call fcn.00493a90
mov eax, dword [0x530c58]
add esp, 8
test eax, eax
je 0x478c4d
push eax
call dword [0x52e330]
mov ebp, dword [esp + 0x34]
mov dword [esp + 0x10], ebp
jmp 0x478c68
mov ebp, dword [esp + 0x30]
mov dword [esp + 0xc], ebp
jmp 0x478c6b
push 0x1a0
call dword [0x52e2f8]
mov ebp, eax
mov dword [esp + 0x10], eax
add esp, 4
test ebp, ebp
je 0x478c7f
push 0x1a0
push 0
push ebp
call sub.MSVCRT.dll_memset
add esp, 0xc
mov dword [edi + 0x1c], ebp
test ebp, ebp
je 0x4792d0
or word [edi + 0xa], 0x10
push esi
push 0x180
lea esi, [ebp + 0x18]
push 0
push esi
call sub.MSVCRT.dll_memset
push 0x2b
push dword [esp + 0x4c]
mov dword [ebp], ebx
push ebp
mov byte [ebp + 9], 0
mov dword [ebp + 4], 0
mov dword [ebp + 0xc], 0
mov dword [ebp + 0x10], 8
mov dword [ebp + 0x14], esi
call fcn.004e6890
mov esi, dword [ebp + 0xc]
add esp, 0x18
dec esi
js 0x478ce5
push esi
push ebp
push dword [esp + 0x54]
call fcn.00477fe0
add esp, 0xc
dec esi
jns 0x478cd4
mov eax, dword [esp + 0x1c]
cmp byte [eax + 0x51], 0
jne 0x4792cf
mov ebx, dword [ebp + 0xc]
or ecx, 0xffffffff
mov esi, dword [ebp + 0x14]
or edx, 0xffffffff
dec ebx
mov dword [esp + 0x20], ecx
mov dword [esp + 0x24], edx
mov dword [esp + 0x14], 0xffffffff
mov dword [esp + 0x18], 0xffffffff
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], esi
js 0x478f33
mov eax, ecx
or eax, edx
je 0x478f2b
movzx eax, word [esi + 0xc]
test eax, 0x1ff
jne 0x478e7d
push 0
push 0x198
push dword [esp + 0x24]
mov dword [esp + 0x20], 0
mov dword [esp + 0x24], 0
call fcn.004ad310
mov edi, eax
add esp, 0xc
test edi, edi
je 0x478f0f
or word [esi + 0xa], 0x20
mov eax, 0x400
xor ebp, ebp
mov dword [esi + 0x1c], edi
push 0x180
mov word [esi + 0xc], ax
lea esi, [edi + 0x18]
push ebp
push esi
mov dword [esp + 0x40], ebp
call sub.MSVCRT.dll_memset
mov eax, dword [esp + 0x5c]
push 0x2c
mov eax, dword [eax]
mov dword [edi], eax
mov eax, dword [esp + 0x3c]
mov byte [edi + 9], 0
mov dword [edi + 4], ebp
mov dword [edi + 0xc], ebp
mov dword [edi + 0x10], 8
mov dword [edi + 0x14], esi
push dword [eax]
push edi
call fcn.004e6890
mov esi, dword [edi + 0xc]
add esp, 0x18
dec esi
js 0x478dd6
push esi
push edi
push dword [esp + 0x54]
call fcn.00477fe0
add esp, 0xc
dec esi
jns 0x478dc5
mov eax, dword [esp + 0x50]
mov dword [edi + 4], eax
mov eax, dword [esp + 0x1c]
cmp byte [eax + 0x51], 0
jne 0x478e50
mov ebx, dword [edi + 0x14]
mov edi, dword [edi + 0xc]
test edi, edi
jle 0x478e4c
mov eax, dword [ebx]
movzx eax, byte [eax]
cmp eax, 0x31
je 0x478e16
cmp eax, 0x35
jl 0x478e05
cmp eax, 0x39
jle 0x478e16
cmp eax, 0x32
je 0x478e16
cmp eax, 0x2d
je 0x478e16
cmp word [ebx + 0xc], 0x40
jne 0x478e46
mov eax, dword [esp + 0x30]
xor ecx, ecx
mov edx, dword [eax + 0x1ec]
test edx, edx
jle 0x478e3c
mov esi, dword [ebx + 0x14]
add eax, 0x1f0
mov edi, edi
cmp dword [eax], esi
je 0x478e6f
inc ecx
add eax, 4
cmp ecx, edx
jl 0x478e30
xor eax, eax
xor edx, edx
or ebp, eax
or dword [esp + 0x34], edx
add ebx, 0x30
dec edi
jne 0x478df1
mov ebx, dword [esp + 0x28]
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x24]
and ecx, ebp
and edx, dword [esp + 0x34]
mov esi, dword [esp + 0x2c]
mov dword [esp + 0x20], ecx
mov dword [esp + 0x24], edx
jmp 0x478f17
mov eax, 1
xor edx, edx
call fcn.00402530
jmp 0x478e40
movzx eax, word [esi + 0xa]
test al, 8
jne 0x478f17
mov ebp, dword [esp + 0x30]
push dword [esi + 0x14]
add ebp, 0x1e8
push ebp
call fcn.004e67d0
mov edi, eax
add esp, 8
movzx eax, word [esi + 0xa]
mov ebx, edx
test al, 2
je 0x478ecf
mov ecx, dword [esi + 0x10]
mov eax, dword [esp + 0x10]
lea esi, [ecx + ecx*2]
mov ecx, dword [eax + 0x14]
add esi, esi
push dword [ecx + esi*8 + 0x14]
push ebp
call fcn.004e67d0
mov esi, dword [esp + 0x34]
add esp, 8
or edi, eax
or ebx, edx
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x24]
and ecx, edi
movzx eax, word [esi + 0xc]
and edx, ebx
mov dword [esp + 0x20], ecx
mov dword [esp + 0x24], edx
test al, 2
jne 0x478f01
mov ebx, dword [esp + 0x28]
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0
jmp 0x478f17
and dword [esp + 0x14], edi
and dword [esp + 0x18], ebx
mov ebx, dword [esp + 0x28]
jmp 0x478f17
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x24]
dec ebx
add esi, 0x30
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], esi
test ebx, ebx
jns 0x478d26
mov edi, dword [esp + 0x40]
mov ebp, dword [esp + 0x10]
mov dword [ebp + 0x198], ecx
mov eax, 0x200
or ecx, edx
mov dword [ebp + 0x19c], edx
mov word [edi + 0xc], ax
je 0x479017
mov eax, dword [esp + 0x50]
mov byte [eax + 9], 1
cmp dword [ebp + 0xc], 2
jne 0x479017
xor ebp, ebp
xor ecx, ecx
jmp 0x478f70
mov edx, dword [esp + 0x10]
mov esi, 0x400
mov eax, dword [edx + 0x14]
cmp word [eax + 0xc], si
je 0x478f8e
mov esi, ebp
neg esi
sbb esi, esi
not esi
and esi, eax
jmp 0x478f9f
mov esi, dword [eax + 0x1c]
cmp ebp, dword [esi + 0xc]
jge 0x478f9d
mov esi, dword [esi + 0x14]
add esi, ecx
jmp 0x478f9f
xor esi, esi
inc ebp
add ecx, 0x30
mov dword [esp + 0x40], ebp
mov dword [esp + 0x34], ecx
test esi, esi
je 0x47901b
mov ebp, dword [esp + 0x10]
xor edi, edi
xor ebx, ebx
jmp 0x478fc0
mov ecx, dword [ebp + 0x14]
mov eax, 0x400
add ecx, 0x30
cmp word [ecx + 0xc], ax
je 0x478fdd
mov eax, edi
neg eax
sbb eax, eax
not eax
and eax, ecx
jmp 0x478fee
mov eax, dword [ecx + 0x1c]
cmp edi, dword [eax + 0xc]
jge 0x478fec
mov eax, dword [eax + 0x14]
add eax, ebx
jmp 0x478fee
xor eax, eax
inc edi
add ebx, 0x30
test eax, eax
je 0x47900a
push eax
push esi
push dword [esp + 0x58]
push dword [esp + 0x58]
call fcn.004f3dd0
add esp, 0x10
jmp 0x478fc0
mov ebp, dword [esp + 0x40]
mov ecx, dword [esp + 0x34]
jmp 0x478f70
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
or eax, dword [esp + 0x18]
je 0x4792cf
xor ebp, ebp
mov ecx, 0xffbf
or eax, 0xffffffff
mov dword [esp + 0x34], ebp
mov dword [esp + 0x2c], eax
jmp 0x479040
test ebp, ebp
jne 0x479173
mov ebx, dword [edx + 0xc]
dec ebx
mov edi, dword [edx + 0x14]
js 0x4792cf
and word [edi + 0xa], cx
mov edx, dword [edi + 0x14]
cmp edx, eax
je 0x47909a
mov eax, dword [esp + 0x30]
xor ecx, ecx
mov esi, dword [eax + 0x1ec]
test esi, esi
jle 0x479081
add eax, 0x1f0
cmp dword [eax], edx
je 0x4790a8
inc ecx
add eax, 4
cmp ecx, esi
jl 0x479075
xor eax, eax
xor edx, edx
and eax, dword [esp + 0x14]
and edx, dword [esp + 0x18]
or eax, edx
jne 0x4790b6
mov eax, dword [esp + 0x2c]
mov ecx, 0xffbf
add edi, 0x30
dec ebx
jns 0x479055
pop esi
pop edi
pop ebp
pop ebx
add esp, 0x38
ret
mov eax, 1
xor edx, edx
call fcn.00402530
jmp 0x479085
mov eax, dword [edi]
lea esi, [edi + 0xa]
mov ecx, dword [edi + 0x1c]
mov ebp, 1
mov edx, dword [edi + 0x14]
mov dword [esp + 0x40], ecx
mov eax, dword [eax + 0xc]
mov dword [esp + 0x2c], edx
mov dword [esp + 0x28], eax
test ebp, ebp
je 0x47914c
cmp dword [esi + 0xa], edx
je 0x4790e8
mov eax, 0xffbf
and word [esi], ax
jmp 0x47913a
cmp dword [esi + 0x12], ecx
jne 0x479138
cmp ecx, 0xfffffffe
jne 0x47910b
push 0xffffffffffffffff
push eax
mov eax, dword [esi - 0xa]
push dword [eax + 0xc]
push dword [esp + 0x44]
call fcn.004b26a0
add esp, 0x10
test eax, eax
jne 0x479138
mov eax, dword [esi - 0xa]
push dword [eax + 0x10]
call fcn.004af750
movsx edi, al
mov eax, dword [esi - 0xa]
push dword [eax + 0xc]
call fcn.004af750
add esp, 8
movsx eax, al
test edi, edi
je 0x479132
cmp edi, eax
jne 0x479138
or word [esi], 0x40
jmp 0x47913a
xor ebp, ebp
mov ecx, dword [esp + 0x40]
add esi, 0x30
dec ebx
mov eax, dword [esp + 0x28]
mov edx, dword [esp + 0x2c]
jns 0x4790d5
mov ecx, dword [esp + 0x34]
mov eax, dword [esp + 0x2c]
inc ecx
mov edx, dword [esp + 0x10]
cmp ecx, 2
mov dword [esp + 0x34], ecx
mov ecx, 0xffbf
jl 0x479040
test ebp, ebp
je 0x4792cf
mov ecx, dword [esp + 0x10]
xor ebx, ebx
xor eax, eax
mov edi, dword [ecx + 0xc]
dec edi
mov esi, dword [ecx + 0x14]
js 0x4791de
test byte [esi + 0xa], 0x40
je 0x4791bf
mov eax, dword [esi]
mov eax, dword [eax + 0x10]
test eax, eax
je 0x4791a6
push 0
push 0
push eax
push dword [esp + 0x28]
call fcn.004798e0
add esp, 0x10
jmp 0x4791a8
xor eax, eax
push eax
mov eax, dword [esp + 0x34]
push ebx
push dword [eax]
call fcn.004b38b0
mov ecx, dword [esi]
mov ebx, eax
add esp, 0xc
mov eax, dword [ecx + 0xc]
add esi, 0x30
dec edi
jns 0x479184
test eax, eax
je 0x4791de
push 0
push 0
push eax
push dword [esp + 0x28]
call fcn.004798e0
add esp, 0x10
mov edi, eax
jmp 0x4791e0
xor edi, edi
mov ebp, dword [esp + 0x38]
push 0
push 0x34
push dword [ebp]
call fcn.004ad310
mov esi, eax
add esp, 0xc
test esi, esi
je 0x4792ae
push 0x34
push 0
push esi
call sub.MSVCRT.dll_memset
or eax, 0xffffffff
mov byte [esi], 0x31
add esp, 0xc
mov word [esi + 0x22], ax
test edi, edi
je 0x479226
mov dword [esi + 0xc], edi
mov eax, dword [edi + 4]
and eax, 0x200104
or dword [esi + 4], eax
push esi
call fcn.0047a7f0
mov eax, dword [ebp]
add esp, 4
mov eax, dword [eax + 0x78]
cmp dword [esi + 0x18], eax
jle 0x479249
push eax
push str.Expression_tree_is_too_large__maximum_depth__d_
push ebp
call fcn.004af3d0
add esp, 0xc
mov ecx, dword [esp + 0x3c]
push 3
push esi
mov eax, dword [ecx + 4]
and eax, 1
or dword [esi + 4], eax
movzx eax, word [ecx + 0x24]
mov dword [esi + 0x14], ebx
mov ebx, dword [esp + 0x58]
push ebx
mov word [esi + 0x24], ax
call fcn.004f3c70
mov esi, eax
push esi
push ebx
push dword [esp + 0x60]
call fcn.00477fe0
mov eax, dword [ebx + 0x14]
lea edx, [esi + esi*2]
mov ecx, dword [esp + 0x6c]
add edx, edx
mov esi, dword [esp + 0x5c]
add esp, 0x18
mov dword [eax + edx*8 + 0x10], ecx
mov ecx, dword [ebx + 0x14]
movzx eax, word [ecx + esi + 8]
mov word [ecx + edx*8 + 8], ax
mov eax, dword [ebx + 0x14]
inc byte [eax + esi + 0xe]
pop esi
pop edi
pop ebp
pop ebx
add esp, 0x38
ret
test edi, edi
je 0x4792be
push edi
push dword [ebp]
call fcn.004b2a40
add esp, 8
test ebx, ebx
je 0x4792cf
push ebx
push dword [esp + 0x20]
call fcn.0047a120
add esp, 8
pop esi
pop edi
pop ebp
pop ebx
add esp, 0x38
ret