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

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x8c
mov esi, dword [esp + 0xa4]
lea edi, [esp + 0x18]
mov ecx, 0x1c
rep movsd dword es:[edi], dword [esi]
lea esi, [esp + 0x20]
mov eax, dword [esp + 0x18]
test eax, eax
je 0x4b2385
cmp eax, 1
jne 0x4b29cf
mov eax, dword [esp + 0x1c]
cmp dword [esp + 0x70], 0x110000
jne 0x4b22f0
cmp eax, dword [esp + 0x7c]
jb 0x4b2a15
mov dword [esp + 0x7c], 0
jmp 0x4b2311
movzx ecx, word [esp + 0x6c]
cmp ecx, 4
ja 0x4b2abe
cmp eax, ecx
jb 0x4b2a1b
test ecx, ecx
je 0x4b2311
mov word [esp + 0x6c], 0
mov dword [esp + 0x18], 0
jmp 0x4b2385
add edi, 0xffff5400
mov ecx, 0xdee95c4d
mov eax, edi
mul ecx
mov ecx, esi
mov ebx, edx
shr ebx, 9
lea edx, [ebx + 0x1100]
call fcn.004b1ef0
imul eax, ebx, 0x24c
mov ecx, edi
sub ecx, eax
imul eax, ecx, 0x925
mov ecx, esi
shr eax, 0x10
add eax, 0x1161
movzx edx, ax
call fcn.004b1ef0
mov eax, edi
mov ecx, 0x24924925
shr eax, 2
mul ecx
lea eax, [edx + edx*8]
lea eax, [eax + eax*2]
add eax, edx
sub edi, eax
je 0x4b2385
add edi, 0x11a7
mov ecx, esi
mov edx, edi
call fcn.004b1ef0
mov edx, dword [esp + 0x24]
test edx, edx
jne 0x4b2476
cmp byte [esp + 0x3c], 2
je 0x4b26cb
lea eax, [esp + 0x28]
push eax
call fcn.004afb30
add esp, 4
cmp eax, 0x110000
je 0x4b26c6
cmp byte [esp + 0x68], 0
mov edi, eax
je 0x4b2420
cmp edi, 0x80
jb 0x4b237c
push edi
call fcn.004b5500
add esp, 4
test al, al
jne 0x4b231b
push edi
call fcn.004b53d0
add esp, 4
test eax, eax
jne 0x4b23f0
push edi
call fcn.004b5360
add esp, 4
test eax, eax
je 0x4b237c
mov ebx, eax
mov ebp, edx
test edx, edx
je 0x4b2385
shl ebp, 2
nop dword [eax + eax]
mov edx, dword [ebx]
mov ecx, esi
add ebx, 4
call fcn.004b1ef0
add ebp, 0xfffffffc
jne 0x4b2400
jmp 0x4b2385
cmp edi, 0x80
jb 0x4b237c
push edi
call fcn.004b5500
add esp, 4
test al, al
jne 0x4b231b
push edi
call fcn.004b5360
add esp, 4
test eax, eax
je 0x4b237c
mov ebp, edx
test edx, edx
je 0x4b2385
mov ebx, eax
shl ebp, 2
nop dword [eax]
mov edx, dword [ebx]
mov ecx, esi
add ebx, 4
call fcn.004b1ef0
add ebp, 0xfffffffc
jne 0x4b2460
jmp 0x4b2385
mov ecx, dword [esp + 0x4c]
mov eax, dword [esp + 0x20]
cmp ecx, 0x110000
jne 0x4b2490
mov edi, dword [esp + 0x54]
mov ebx, dword [esp + 0x58]
jmp 0x4b24a2
movzx ebx, word [esp + 0x44]
lea edi, [esp + 0x48]
cmp ebx, 5
jae 0x4b2abe
cmp eax, ebx
jae 0x4b2abe
mov edi, dword [edi + eax*8 + 4]
inc eax
cmp eax, edx
jne 0x4b24e2
cmp ecx, 0x110000
jne 0x4b24eb
mov eax, dword [esp + 0x58]
sub eax, edx
jne 0x4b24f4
cmp ecx, 0x110000
jne 0x4b2578
cmp dword [esp + 0x58], eax
jb 0x4b2586
mov dword [esp + 0x58], eax
jmp 0x4b2586
mov dword [esp + 0x20], eax
jmp 0x4b2596
movzx eax, word [esp + 0x44]
sub eax, edx
je 0x4b24c3
xor ecx, ecx
nop word cs:[eax + eax]
mov edx, dword [esp + 0x24]
add edx, ecx
cmp dword [esp + 0x4c], 0x110000
jne 0x4b2530
mov ebx, dword [esp + 0x58]
cmp edx, ebx
jae 0x4b2abe
mov ebp, dword [esp + 0x54]
jmp 0x4b254a
movzx ebx, word [esp + 0x44]
cmp ebx, 5
jae 0x4b2abe
cmp edx, ebx
lea ebp, [esp + 0x48]
jae 0x4b2abe
cmp ecx, ebx
jae 0x4b2abe
movzx ebx, byte [ebp + edx*8]
mov edx, dword [ebp + edx*8 + 4]
mov byte [ebp + ecx*8], bl
mov dword [ebp + ecx*8 + 4], edx
inc ecx
cmp eax, ecx
jne 0x4b2500
mov ecx, dword [esp + 0x4c]
cmp ecx, 0x110000
je 0x4b24cf
movzx ecx, word [esp + 0x44]
cmp eax, ecx
jae 0x4b2586
mov word [esp + 0x44], ax
mov dword [esp + 0x20], 0
mov dword [esp + 0x24], 0
push edi
call fcn.004b5140
add esp, 4
mov ebx, dword [esp + 0x80]
mov edx, eax
cmp ebx, 0x110000
jne 0x4b25c4
test dl, dl
jne 0x4b2890
mov dword [esp + 0x80], edi
jmp 0x4b2385
cmp byte [esp + 0x84], 0
je 0x4b2628
cmp byte [esp + 0x85], dl
jae 0x4b2680
mov byte [esp + 3], dl
push edi
push ebx
call fcn.004b5480
add esp, 8
cmp eax, 0x110000
jne 0x4b2674
cmp dword [esp + 0x70], 0x110000
jne 0x4b27e4
mov eax, dword [esp + 0x7c]
cmp eax, dword [esp + 0x74]
jne 0x4b261e
push eax
lea eax, [esp + 0x78]
push eax
call fcn.004af0c0
add esp, 8
mov eax, dword [esp + 0x7c]
movzx edx, byte [esp + 3]
jmp 0x4b26b6
mov byte [esp + 3], dl
push edi
push ebx
call fcn.004b5480
add esp, 8
cmp eax, 0x110000
jne 0x4b2674
movzx edx, byte [esp + 3]
test dl, dl
je 0x4b28b5
cmp dword [esp + 0x70], 0x110000
jne 0x4b27bc
mov eax, dword [esp + 0x7c]
cmp eax, dword [esp + 0x74]
jne 0x4b26b6
push eax
lea eax, [esp + 0x78]
push eax
call fcn.004af0c0
movzx edx, byte [esp + 0xb]
jmp 0x4b26af
mov dword [esp + 0x80], eax
jmp 0x4b2385
test dl, dl
je 0x4b2894
cmp dword [esp + 0x70], 0x110000
jne 0x4b2752
mov eax, dword [esp + 0x7c]
cmp eax, dword [esp + 0x74]
jne 0x4b26b6
push eax
lea eax, [esp + 0x78]
push eax
mov ebx, edx
call fcn.004af0c0
mov edx, ebx
add esp, 8
mov eax, dword [esp + 0x7c]
mov ecx, dword [esp + 0x78]
mov dword [ecx + eax*4], edi
inc dword [esp + 0x7c]
jmp 0x4b27d0
mov byte [esp + 0x3c], 2
cmp dword [esp + 0x4c], 0x110000
jne 0x4b26e7
mov eax, dword [esp + 0x58]
test eax, eax
je 0x4b2857
mov ecx, dword [esp + 0x54]
jmp 0x4b2702
movzx eax, word [esp + 0x44]
test eax, eax
je 0x4b2857
cmp ax, 5
lea ecx, [esp + 0x48]
jae 0x4b2abe
mov edx, dword [esp + 0x24]
sub eax, edx
jb 0x4b2abe
lea ecx, [ecx + edx*8]
lea edx, [esp + 0x88]
mov dword [esp + 4], edx
lea edx, [esp + 4]
push edx
push eax
push ecx
call fcn.004b41e0
add esp, 0xc
mov ecx, dword [esp + 0x4c]
cmp ecx, 0x110000
jne 0x4b2744
mov edx, dword [esp + 0x58]
mov dword [esp + 0x24], edx
jmp 0x4b247a
movzx edx, word [esp + 0x44]
mov dword [esp + 0x24], edx
jmp 0x4b247a
movzx eax, word [esp + 0x6c]
cmp eax, 3
jbe 0x4b27c6
mov ebx, edx
push edi
lea eax, [esp + 0x70]
push eax
lea eax, [esp + 0xc]
push eax
call fcn.00505910
add esp, 0xc
cmp dword [esp + 0x70], 0x110000
jne 0x4b2798
mov eax, dword [esp + 0x74]
test eax, eax
je 0x4b2798
shl eax, 2
push 4
push eax
push dword [esp + 0x80]
call fcn.0040dc90
add esp, 0xc
mov eax, dword [esp + 0x14]
movsd xmm0, qword [esp + 4]
movsd xmm1, qword [esp + 0xc]
lea ecx, [esp + 0x6c]
mov edx, ebx
mov dword [ecx + 0x10], eax
movsd qword [ecx + 8], xmm1
movsd qword [ecx], xmm0
jmp 0x4b27d0
movzx eax, word [esp + 0x6c]
cmp eax, 3
ja 0x4b27f3
mov dword [esp + eax*4 + 0x70], edi
inc eax
mov word [esp + 0x6c], ax
mov byte [esp + 0x84], 1
mov byte [esp + 0x85], dl
jmp 0x4b2385
movzx eax, word [esp + 0x6c]
movzx edx, byte [esp + 3]
cmp eax, 3
jbe 0x4b27c6
push edi
lea eax, [esp + 0x70]
push eax
lea eax, [esp + 0xc]
push eax
call fcn.00505910
add esp, 0xc
cmp dword [esp + 0x70], 0x110000
jne 0x4b282d
mov eax, dword [esp + 0x74]
test eax, eax
je 0x4b282d
shl eax, 2
push 4
push eax
push dword [esp + 0x80]
call fcn.0040dc90
add esp, 0xc
mov eax, dword [esp + 0x14]
movsd xmm0, qword [esp + 4]
movsd xmm1, qword [esp + 0xc]
movzx edx, byte [esp + 3]
lea ecx, [esp + 0x6c]
mov dword [ecx + 0x10], eax
movsd qword [ecx + 8], xmm1
movsd qword [ecx], xmm0
jmp 0x4b27d0
mov dword [esp + 0x18], 2
mov dword [esp + 0x1c], 0
mov eax, 2
mov ebx, dword [esp + 0x80]
cmp ebx, 0x110000
je 0x4b22b4
mov dword [esp + 0x80], 0x110000
jmp 0x4b28c0
mov ebx, edi
jmp 0x4b28c0
mov dword [esp + 0x80], edi
mov byte [esp + 0x84], 0
mov dword [esp + 0x18], 1
mov dword [esp + 0x1c], 0
jmp 0x4b28c0
mov dword [esp + 0x80], edi
nop dword [eax]
cmp ebx, 0x7f
ja 0x4b28f0
mov edi, dword [esp + 0xa0]
mov eax, dword [edi + 8]
cmp eax, dword [edi]
jne 0x4b28e0
push eax
push edi
call fcn.0040bd70
add esp, 8
mov eax, dword [edi + 8]
mov ecx, dword [edi + 4]
mov byte [ecx + eax], bl
inc dword [edi + 8]
jmp 0x4b22b0
mov eax, ebx
cmp ebx, 0x800
mov dword [esp + 4], 0
jae 0x4b291c
shr eax, 6
and bl, 0x3f
mov edi, 2
or al, 0xc0
or bl, 0x80
mov byte [esp + 4], al
mov byte [esp + 5], bl
jmp 0x4b297d
cmp ebx, 0x10000
jae 0x4b294b
shr eax, 0xc
mov edi, 3
or al, 0xe0
mov byte [esp + 4], al
mov eax, ebx
and bl, 0x3f
shr eax, 6
or bl, 0x80
and al, 0x3f
or al, 0x80
mov byte [esp + 5], al
mov byte [esp + 6], bl
jmp 0x4b297d
shr eax, 0x12
mov edi, 4
or al, 0xf0
mov byte [esp + 4], al
mov eax, ebx
shr eax, 0xc
and al, 0x3f
or al, 0x80
mov byte [esp + 5], al
mov eax, ebx
and bl, 0x3f
shr eax, 6
or bl, 0x80
and al, 0x3f
or al, 0x80
mov byte [esp + 6], al
mov byte [esp + 7], bl
mov ecx, dword [esp + 0xa0]
mov eax, dword [ecx]
mov ebx, dword [ecx + 8]
sub eax, ebx
cmp eax, edi
jb 0x4b29b6
mov eax, dword [esp + 0xa0]
mov ebp, eax
mov eax, dword [eax + 4]
add eax, ebx
push edi
lea ecx, [esp + 8]
push ecx
push eax
call fcn.004f5b80
add esp, 0xc
add ebx, edi
mov dword [ebp + 8], ebx
jmp 0x4b22b0
push edi
push ebx
mov ebx, dword [esp + 0xa8]
push ebx
call fcn.00503700
mov eax, ebx
add esp, 0xc
mov ebx, dword [ebx + 8]
jmp 0x4b2996
mov eax, dword [esp + 0x70]
mov ecx, dword [esp + 0x1c]
cmp eax, 0x110000
jne 0x4b29ea
cmp ecx, dword [esp + 0x7c]
jae 0x4b2a34
mov edi, dword [esp + 0x78]
jmp 0x4b2a00
movzx edx, word [esp + 0x6c]
cmp edx, 5
jae 0x4b2abe
cmp ecx, edx
lea edi, [esp + 0x70]
jae 0x4b2a3e
mov ebx, dword [edi + ecx*4]
inc ecx
mov dword [esp + 0x18], 2
mov dword [esp + 0x1c], ecx
jmp 0x4b28c0
mov ecx, dword [esp + 0x78]
jmp 0x4b2a1f
lea ecx, [esp + 0x70]
mov ebx, dword [ecx + eax*4]
inc eax
mov dword [esp + 0x18], 1
mov dword [esp + 0x1c], eax
jmp 0x4b28c0
mov dword [esp + 0x7c], 0
jmp 0x4b2a49
test edx, edx
je 0x4b2a49
mov word [esp + 0x6c], 0
mov ebx, dword [esp + 0x80]
mov dword [esp + 0x80], 0x110000
cmp ebx, 0x110000
jne 0x4b28c0
cmp dword [esp + 0x4c], 0x110000
jne 0x4b2a8f
mov ecx, dword [esp + 0x50]
test ecx, ecx
je 0x4b2a8f
shl ecx, 3
push 4
push ecx
push dword [esp + 0x5c]
call fcn.0040dc90
add esp, 0xc
mov eax, dword [esp + 0x70]
cmp eax, 0x110000
jne 0x4b2ab3
mov eax, dword [esp + 0x74]
test eax, eax
je 0x4b2ab3
shl eax, 2
push 4
push eax
push dword [esp + 0x80]
call fcn.0040dc90
add esp, 0xc
add esp, 0x8c
pop esi
pop edi
pop ebx
pop ebp
ret
ud2