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

Disassembly:
sub esp, 0x5c
push ebx
mov ebx, dword [esp + 0x64]
push ebp
xor ebp, ebp
cmp bx, 0x400
push esi
push edi
mov dword [esp + 0x4c], ebp
mov dword [esp + 0x54], ebp
mov esi, ebx
jne 0x30051e87
call dword [0x30001258]
jmp 0x30051e94
cmp bx, 0x800
jne 0x30051e96
call dword [0x3000110c]
mov esi, eax
cmp esi, dword [0x30066ab8]
jne 0x30051edd
cmp dword [0x300bc8b4], ebp
je 0x30051ed6
mov eax, dword [esp + 0x84]
mov ecx, dword [esp + 0x80]
mov edx, dword [esp + 0x7c]
push eax
mov eax, dword [esp + 0x7c]
push ecx
mov ecx, dword [esp + 0x7c]
push edx
push eax
push ecx
push ebx
call dword [0x3000125c]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x5c
ret 0x18
mov esi, 1
jmp 0x30051f53
xor eax, eax
push 0x300a47cc
mov ecx, 0xd
mov edi, 0x300a47cc
push esi
rep stosd dword es:[edi], eax
call fcn.3004f260
call fcn.3004f312
push esi
mov dword [0x30066ab8], esi
call fcn.3004f35f
add esp, 0xc
test eax, eax
jne 0x30051f48
mov edx, dword [esp + 0x84]
mov eax, dword [esp + 0x80]
mov ecx, dword [esp + 0x7c]
push edx
mov edx, dword [esp + 0x7c]
push eax
mov eax, dword [esp + 0x7c]
push ecx
push edx
push eax
push ebx
mov dword [0x300bc8b4], 1
call dword [0x3000125c]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x5c
ret 0x18
mov dword [0x300bc8b4], ebp
mov esi, 4
mov eax, dword [esp + 0x74]
mov edx, dword [esp + 0x84]
mov ecx, dword [esp + 0x7c]
and eax, 0xbfffffff
cmp dword [0x300a47e8], ebp
mov dword [esp + 0x68], esi
jne 0x300529d4
cmp ecx, 0xffffffff
jg 0x300529d4
cmp edx, 0xffffffff
jg 0x300529de
cmp eax, 1
ja 0x300529d4
test ebx, 0xfff00000
jne 0x300529c0
mov ebp, dword [esp + 0x78]
mov edx, dword [esp + 0x80]
xor esi, esi
cmp ebp, esi
mov dword [esp + 0x70], ebp
mov dword [esp + 0x84], edx
je 0x300529c0
cmp edx, esi
je 0x300529c0
mov cx, word [ebp]
cmp cx, word [edx]
jne 0x3005208e
cmp cx, si
je 0x30052083
mov cx, word [ebp + 2]
add ebp, 2
add edx, 2
cmp cx, word [edx]
jne 0x30052083
cmp cx, si
je 0x30052083
mov cx, word [ebp + 2]
add ebp, 2
add edx, 2
cmp cx, word [edx]
jne 0x30052083
cmp cx, si
je 0x30052083
mov cx, word [ebp + 2]
add ebp, 2
add edx, 2
cmp cx, word [edx]
jne 0x30052083
cmp cx, si
je 0x30052083
mov cx, word [ebp + 2]
add ebp, 2
add edx, 2
cmp cx, word [edx]
jne 0x30052083
cmp cx, si
je 0x30052083
mov cx, word [ebp + 2]
add ebp, 2
add edx, 2
cmp cx, word [edx]
jne 0x30052083
cmp cx, si
je 0x30052083
mov cx, word [ebp + 2]
add ebp, 2
add edx, 2
cmp cx, word [edx]
jne 0x30052083
cmp cx, si
je 0x30052083
mov cx, word [ebp + 2]
add ebp, 2
add edx, 2
cmp cx, word [edx]
jne 0x30052083
cmp cx, si
je 0x30052083
mov cx, word [ebp + 2]
add ebp, 2
add edx, 2
cmp cx, word [edx]
je 0x30051fd3
mov dword [esp + 0x84], edx
mov dword [esp + 0x70], ebp
mov cx, word [ebp]
cmp cx, word [edx]
je 0x3005296e
neg eax
sbb eax, eax
and eax, 0xe8000000
add eax, 0xffffffff
mov edi, eax
xor eax, eax
cmp dword [0x300a47e4], esi
mov dword [esp + 0x40], esi
setne al
mov dword [esp + 0x38], esi
mov dword [esp + 0x5c], esi
mov dword [esp + 0x28], esi
mov dword [esp + 0x34], esi
mov dword [esp + 0x50], esi
mov dword [esp + 0x58], esi
add eax, 1
or al, 4
mov dword [esp + 0x14], esi
mov dword [esp + 0x7c], esi
mov dword [esp + 0x48], edi
mov dword [esp + 0x20], eax
mov ax, cx
cmp ax, si
je 0x30052905
jmp 0x300520f7
mov edi, dword [esp + 0x48]
mov si, word [edx]
test si, si
je 0x300528fe
lea edx, [esp + 0x1c]
push edx
push eax
call fcn.3004ffb6
lea eax, [esp + 0x20]
push eax
push esi
call fcn.3004ffb6
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x28]
and eax, edi
and ecx, edi
add esp, 0x10
cmp eax, ecx
mov dword [esp + 0x1c], eax
mov dword [esp + 0x18], ecx
je 0x30052897
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
cmp cx, dx
mov al, byte [esp + 0x1d]
mov byte [esp + 0x74], al
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x30], edx
jne 0x3005215d
cmp al, 3
jne 0x300527c4
xor ecx, ecx
test al, al
mov dword [esp + 0x3c], ecx
mov edx, 1
jne 0x30052179
add ebp, 2
mov ecx, edx
mov dword [esp + 0x70], ebp
mov dword [esp + 0x3c], ecx
mov ebx, dword [esp + 0x18]
shr ebx, 8
test bl, bl
jne 0x3005219a
mov edx, dword [esp + 0x84]
add edx, 2
mov dword [esp + 0x84], edx
jmp 0x300528de
test ecx, ecx
jne 0x300528d7
movzx eax, al
add eax, 0xffffffff
cmp eax, 5
ja case.0x300521b1.3
jmp dword [eax*4 + 0x30052a18]
cmp dword [esp + 0x38], 0
je 0x300521c6
test byte [esp + 0x20], 2
je 0x300521d3
and dword [esp + 0x20], 0xfffffffe
mov dword [esp + 0x38], 3
add ebp, 2
mov dword [esp + 0x70], ebp
mov dword [esp + 0x3c], edx
jmp case.0x300521b1.3
cmp dword [esp + 0x40], 0
je 0x300521fa
add ebp, 2
mov dword [esp + 0x70], ebp
mov dword [esp + 0x3c], edx
jmp case.0x300521b1.3
cmp byte [esp + 0x19], 6
je case.0x300521b1.3
cmp dword [esp + 0x34], 0
je 0x30052228
add ebp, 2
mov dword [esp + 0x34], 3
mov dword [esp + 0x40], edx
mov dword [esp + 0x70], ebp
mov dword [esp + 0x3c], edx
jmp case.0x300521b1.3
add ebp, 2
mov dword [esp + 0x28], 3
mov dword [esp + 0x70], ebp
mov dword [esp + 0x3c], edx
jmp case.0x300521b1.3
movzx eax, byte [esp + 0x1c]
mov ecx, dword [0x30066420]
mov ecx, dword [ecx + 0x28]
lea eax, [ecx + eax*4]
mov cx, word [eax]
mov ax, word [eax + 2]
mov dword [esp + 0x50], ebp
lea ebp, [esp + 0x60]
mov dword [esp + 0x70], ebp
mov word [esp + 0x60], cx
mov word [esp + 0x62], ax
mov dword [esp + 0x4c], 2
mov dword [esp + 0x3c], edx
jmp case.0x300521b1.3
mov bl, byte [esp + 0x1f]
mov al, byte [esp + 0x1c]
and bl, 0x3f
cmp al, 1
mov ecx, 0xffff0000
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], ecx
ja 0x30052369
lea edx, [ebp - 2]
cmp edx, dword [esp + 0x78]
jb 0x30052390
mov edi, 2
lea esi, [ebp - 2]
mov cx, word [esi]
lea eax, [esp + 0x10]
push eax
push ecx
call fcn.3004ffb6
mov ecx, dword [esp + 0x18]
and ecx, dword [esp + 0x50]
add esp, 8
mov dword [esp + 0x10], ecx
mov al, byte [esp + 0x11]
cmp al, 3
jae 0x300522ec
cmp al, 2
mov ecx, 0xffff0000
je 0x30052390
jmp 0x300522fb
jne 0x30052363
mov al, byte [esp + 0x10]
cmp al, 1
ja 0x30052311
mov ecx, 0xffff0000
add edi, 2
mov edx, ebp
sub edx, edi
sub esi, 2
cmp edx, dword [esp + 0x78]
mov dword [esp + 0x10], ecx
jae 0x300522b8
jmp 0x30052390
movzx ax, al
or ah, 0x22
mov word [esp + 0x10], ax
mov al, byte [esp + 0x13]
and al, 0x3f
mov cl, al
and cl, 0xc6
mov byte [esp + 0x14], cl
mov cl, al
and cl, 0xe4
cmp byte [esp + 0x1c], 0
mov byte [esp + 0x16], cl
mov ecx, dword [esp + 0x10]
jne 0x30052351
and al, 0xc5
mov dword [esp + 0x2c], ecx
mov byte [esp + 0x15], 4
mov byte [esp + 0x17], al
jmp 0x30052397
mov eax, ecx
and eax, 0xff87
mov dword [esp + 0x2c], eax
mov byte [esp + 0x15], 5
jmp 0x30052389
mov dword [esp + 0x2c], ecx
jmp 0x30052390
movzx ax, al
or ah, 0x22
mov byte [esp + 0x15], 3
mov dword [esp + 0x2c], eax
mov al, bl
and al, 0xc6
mov byte [esp + 0x14], al
mov al, bl
and al, 0xe4
mov byte [esp + 0x16], al
and bl, 0xc5
mov byte [esp + 0x17], bl
cmp byte [esp + 0x1c], 1
ja 0x300523b5
cmp ecx, 0xffff0000
jne 0x300523b5
mov dword [esp + 0x2c], 0xffff
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x14], 0
jmp 0x300523ce
mov eax, dword [esp + 0x1c]
movzx ecx, word [esp + 0x2c]
and eax, 0xffff0000
or eax, ecx
mov dword [esp + 0x1c], eax
mov byte [esp + 0x1f], 2
cmp byte [esp + 0x19], 3
je 0x30052429
cmp byte [esp + 0x7c], 0
jne 0x300523e8
cmp byte [esp + 0x14], 0
je 0x300523e8
mov byte [esp + 0x7c], 3
cmp byte [esp + 0x7d], 0
jne 0x300523ff
mov eax, dword [esp + 0x14]
shr eax, 8
test al, al
je 0x300523ff
mov byte [esp + 0x7d], 3
cmp byte [esp + 0x7e], 0
jne 0x30052416
mov eax, dword [esp + 0x14]
shr eax, 0x10
test al, al
je 0x30052416
mov byte [esp + 0x7e], 3
cmp byte [esp + 0x7f], 0
jne 0x30052429
cmp byte [esp + 0x17], 0
je 0x30052429
mov byte [esp + 0x7f], 3
mov edx, 1
movzx eax, byte [esp + 0x19]
add eax, 0xffffffff
cmp eax, 5
ja case.0x3005243f.3
jmp dword [eax*4 + 0x30052a30]
cmp dword [esp + 0x38], 0
je 0x30052454
test byte [esp + 0x20], 2
je 0x3005245d
and dword [esp + 0x20], 0xfffffffe
mov dword [esp + 0x38], edx
mov edx, dword [esp + 0x84]
add edx, 2
mov dword [esp + 0x84], edx
jmp 0x300528de
cmp dword [esp + 0x40], 0
jne 0x30052500
cmp byte [esp + 0x74], 6
je 0x300524c4
cmp dword [esp + 0x28], 0
je 0x300524aa
mov dword [esp + 0x28], edx
mov dword [esp + 0x40], edx
mov edx, dword [esp + 0x84]
add edx, 2
mov dword [esp + 0x84], edx
jmp 0x300528de
mov dword [esp + 0x34], edx
mov edx, dword [esp + 0x84]
add edx, 2
mov dword [esp + 0x84], edx
jmp 0x300528de
cmp dword [esp + 0x28], 0
je 0x300524d1
mov dword [esp + 0x28], edx
jmp 0x300524f5
cmp dword [esp + 0x34], 0
je 0x300524e2
mov dword [esp + 0x34], 3
jmp 0x300524f5
mov al, byte [esp + 0x1c]
cmp al, byte [esp + 0x18]
sbb eax, eax
and al, 0xfe
add eax, 3
mov dword [esp + 0x28], eax
add ebp, 2
mov dword [esp + 0x70], ebp
mov dword [esp + 0x40], edx
mov edx, dword [esp + 0x84]
add edx, 2
mov dword [esp + 0x84], edx
jmp 0x300528de
mov ecx, dword [esp + 0x84]
movzx eax, byte [esp + 0x18]
mov dword [esp + 0x58], ecx
mov ecx, dword [0x30066420]
mov ecx, dword [ecx + 0x28]
lea eax, [ecx + eax*4]
mov cx, word [eax]
mov ax, word [eax + 2]
lea edx, [esp + 0x64]
mov dword [esp + 0x84], edx
mov word [esp + 0x64], cx
mov word [esp + 0x66], ax
mov dword [esp + 0x54], 2
jmp 0x300528de
mov bl, byte [esp + 0x1b]
mov al, byte [esp + 0x18]
and bl, 0x3f
cmp al, 1
mov esi, 0xffff0000
mov dword [esp + 0x10], 0
mov dword [esp + 0x24], esi
ja 0x300526b3
mov ecx, dword [esp + 0x84]
add ecx, 0xfffffffe
cmp ecx, dword [esp + 0x80]
jb 0x300525d5
mov edi, dword [esp + 0x84]
mov ebp, 2
add edi, 0xfffffffe
lea ecx, [ecx]
mov ax, word [edi]
lea edx, [esp + 0x24]
push edx
push eax
call fcn.3004ffb6
mov esi, dword [esp + 0x2c]
and esi, dword [esp + 0x50]
add esp, 8
mov dword [esp + 0x24], esi
mov al, byte [esp + 0x25]
cmp al, 3
jae 0x3005261d
cmp al, 2
mov esi, 0xffff0000
jne 0x30052630
mov ebp, dword [esp + 0x70]
mov bl, byte [esp + 0x13]
mov dl, byte [esp + 0x12]
mov cl, byte [esp + 0x10]
cmp byte [esp + 0x18], 1
ja 0x300526d5
cmp esi, 0xffff0000
jne 0x300526d5
mov dword [esp + 0x10], 0
mov bl, byte [esp + 0x13]
mov dl, byte [esp + 0x12]
mov cl, byte [esp + 0x10]
mov dword [esp + 0x30], 0xffff
mov dword [esp + 0x18], esi
jmp 0x300526ee
jne 0x300526aa
mov al, byte [esp + 0x24]
cmp al, 1
ja 0x30052655
mov esi, 0xffff0000
mov ecx, dword [esp + 0x84]
add ebp, 2
sub ecx, ebp
sub edi, 2
cmp ecx, dword [esp + 0x80]
mov dword [esp + 0x24], esi
jae 0x300525a3
jmp 0x300525d1
mov ebp, dword [esp + 0x70]
movzx dx, al
mov al, byte [esp + 0x27]
or dh, 0x22
and al, 0x3f
mov cl, al
and cl, 0xc6
mov word [esp + 0x24], dx
mov esi, dword [esp + 0x24]
mov dl, al
and dl, 0xe4
cmp byte [esp + 0x18], 0
jne 0x30052692
and al, 0xc5
mov dword [esp + 0x30], esi
mov byte [esp + 0x11], 4
mov bl, al
jmp 0x300525ec
mov eax, esi
and eax, 0xff87
mov dword [esp + 0x30], eax
mov byte [esp + 0x11], 5
and bl, 0xc5
jmp 0x300525e1
mov dword [esp + 0x30], esi
jmp 0x300525d1
movzx ax, al
or ah, 0x22
mov cl, bl
mov dl, bl
and cl, 0xc6
and dl, 0xe4
mov byte [esp + 0x11], 3
and bl, 0xc5
mov dword [esp + 0x30], eax
jmp 0x300525e1
mov eax, dword [esp + 0x18]
movzx esi, word [esp + 0x30]
and eax, 0xffff0000
or eax, esi
mov dword [esp + 0x18], eax
mov byte [esp + 0x1b], 2
cmp byte [esp + 0x74], 3
je 0x3005273e
cmp byte [esp + 0x7c], 0
jne 0x30052705
test cl, cl
je 0x30052705
mov byte [esp + 0x7c], 1
cmp byte [esp + 0x7d], 0
jne 0x3005271c
mov eax, dword [esp + 0x10]
shr eax, 8
test al, al
je 0x3005271c
mov byte [esp + 0x7d], 1
cmp byte [esp + 0x7e], 0
jne 0x3005272c
test dl, dl
je 0x3005272c
mov byte [esp + 0x7e], 1
cmp byte [esp + 0x7f], 0
jne case.0x3005243f.3
test bl, bl
je case.0x3005243f.3
mov byte [esp + 0x7f], 1
jmp case.0x3005243f.3
cmp byte [esp + 0x7c], 0
jne 0x30052758
mov al, byte [esp + 0x14]
cmp al, cl
je 0x30052758
setae cl
lea ecx, [ecx + ecx + 1]
mov byte [esp + 0x7c], cl
cmp byte [esp + 0x7d], 0
jne 0x30052776
mov cl, byte [esp + 0x15]
mov al, byte [esp + 0x11]
cmp cl, al
je 0x30052776
setae cl
lea ecx, [ecx + ecx + 1]
mov byte [esp + 0x7d], cl
cmp byte [esp + 0x7e], 0
jne 0x30052790
mov cl, byte [esp + 0x16]
cmp cl, dl
je 0x30052790
setae cl
lea ecx, [ecx + ecx + 1]
mov byte [esp + 0x7e], cl
cmp byte [esp + 0x7f], 0
jne case.0x3005243f.3
cmp byte [esp + 0x17], bl
je case.0x3005243f.3
setae al
lea eax, [eax + eax + 1]
mov byte [esp + 0x7f], al
cmp dword [esp + 0x3c], 0
jne 0x300528d7
mov ecx, dword [esp + 0x2c]
mov eax, dword [esp + 0x30]
cmp cx, ax
jne 0x300528ed
test byte [esp + 0x20], 3
je 0x3005286f
mov al, byte [esp + 0x1e]
mov bl, byte [esp + 0x1a]
cmp al, bl
mov byte [esp + 0x74], al
je 0x3005286f
mov ax, word [ebp + 2]
test ax, ax
je 0x30052818
lea esp, [esp]
lea ecx, [esp + 0x44]
push ecx
push eax
call fcn.3004ffb6
add esp, 8
cmp byte [esp + 0x45], 1
jne 0x30052818
mov dl, byte [esp + 0x46]
mov ax, word [ebp + 4]
add byte [esp + 0x74], dl
add ebp, 2
test ax, ax
jne 0x300527ef
mov esi, dword [esp + 0x84]
mov ax, word [esi + 2]
test ax, ax
je 0x30052857
lea esp, [esp]
lea ecx, [esp + 0x44]
push ecx
push eax
call fcn.3004ffb6
add esp, 8
cmp byte [esp + 0x45], 1
jne 0x30052850
mov ax, word [esi + 4]
add bl, byte [esp + 0x46]
add esi, 2
test ax, ax
jne 0x3005282b
mov dword [esp + 0x84], esi
mov al, byte [esp + 0x74]
cmp al, bl
je 0x3005286f
sbb eax, eax
and al, 0xfe
add eax, 3
and dword [esp + 0x20], 0xfffffffe
mov dword [esp + 0x38], eax
test byte [esp + 0x20], 4
je 0x30052897
mov al, byte [esp + 0x1b]
mov cl, byte [esp + 0x1f]
and al, 0x3f
and cl, 0x3f
cmp cl, al
je 0x30052897
sbb eax, eax
and al, 0xfe
add eax, 3
and dword [esp + 0x20], 0xfffffffb
mov dword [esp + 0x5c], eax
mov eax, dword [esp + 0x50]
xor ecx, ecx
cmp eax, ecx
je 0x300528ae
sub dword [esp + 0x4c], 1
jne 0x300528ae
mov ebp, eax
mov dword [esp + 0x50], ecx
mov eax, dword [esp + 0x58]
cmp eax, ecx
je 0x300528c8
sub dword [esp + 0x54], 1
jne 0x300528c8
mov dword [esp + 0x84], eax
mov dword [esp + 0x58], ecx
add ebp, 2
add dword [esp + 0x84], 2
mov dword [esp + 0x70], ebp
mov edx, dword [esp + 0x84]
mov ax, word [ebp]
test ax, ax
jne 0x300520f3
jmp 0x30052905
sbb eax, eax
and al, 0xfe
pop edi
pop esi
pop ebp
pop ebx
add eax, 3
add esp, 0x5c
ret 0x18
cmp word [ebp], 0
jne 0x3005297f
cmp word [edx], 0
jne 0x3005297d
mov eax, dword [esp + 0x38]
test eax, eax
jne 0x30052a09
mov eax, dword [esp + 0x5c]
test eax, eax
jne 0x30052a09
cmp dword [esp + 0x7c], eax
je 0x30052956
mov al, byte [esp + 0x7c]
test al, al
jne 0x30052949
mov al, byte [esp + 0x7d]
test al, al
jne 0x30052949
mov al, byte [esp + 0x7e]
test al, al
jne 0x30052949
mov al, byte [esp + 0x7f]
test al, al
je 0x30052956
pop edi
pop esi
pop ebp
movzx eax, al
pop ebx
add esp, 0x5c
ret 0x18
mov eax, dword [esp + 0x28]
test eax, eax
jne 0x30052a09
mov eax, dword [esp + 0x34]
test eax, eax
jne 0x30052a09
pop edi
pop esi
pop ebp
mov eax, 2
pop ebx
add esp, 0x5c
ret 0x18
mov ebp, edx
mov eax, dword [esp + 0x68]
mov ecx, dword [esp + 0x34]
push eax
mov eax, dword [esp + 0x2c]
push ecx
mov ecx, dword [esp + 0x84]
push eax
mov eax, dword [esp + 0x68]
push ecx
mov ecx, dword [esp + 0x48]
push eax
xor eax, eax
cmp word [edx], ax
push ecx
sete al
lea eax, [eax + eax + 1]
push eax
push ebp
call fcn.3004f1c8
add esp, 0x20
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x5c
ret 0x18
push 0x57
call dword [fcn.300012c8]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x5c
ret 0x18
cmp edx, 0xffffffff
jg 0x300529de
mov edx, 0xfffffffe
cmp ecx, 0xffffffff
jg 0x300529e8
mov ecx, 0xfffffffe
push esi
push edx
mov edx, dword [esp + 0x88]
push edx
push ecx
mov ecx, dword [esp + 0x88]
push ecx
push eax
push 0x300a47cc
call fcn.300504c4
add esp, 0x1c
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x5c
ret 0x18